G
Godot Version 4.8.beta1 Question I was able to write code where the character’s movement repeats while the key is held down. However, the movement is really fast, as shown in the gif below: How do I “slow down” the movement? Also, how do I set the starting position of the character on a specific tile, instead of just using the coordinates? Code below: extends CharacterBody2D @onready var tiles: TileMapLayer = $"../Ore_Tiles" @onready var mining_drone: CharacterBody2D = $"." @onready var…
G
Godot Version 4.7.2 Question I have an abstract class that defines behavior which I want many different types of Nodes in my game to share. This class also defines abstract functions, the implementation of which needs to be specific to each Node. @abstract class_name GameObject @abstract func foo() func bar(): pass # Do something. Problem is, I can’t actually extend this class in any of my scripts, since those scripts must already extend the Node type. The only solution I was able to come up…
G
Godot Version v4.7.2.stable.official [ed1daf0bf] Question I’m trying to implement an attack that would launch the player in the direction they’re currently facing, also taking into account whether they’re standing on a slope. However, for some reason, when dashing on a slope, the character is angled further off the ground than he should be. It’s very subtle when facing upward but very noticeable when facing downward. What’s going on here and how do I fix it? func _physics_process(delta: float)…
G
Godot Version 4.6.3 stable Question OK so my game had a simple fullscreen toggle function. The project is set Window / Mode = Windowed in editor settings. There’s a fullscreen bool, that starts out false, and whenever you pressed F11, it calls a simple flipper: if fullscreen: DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED) print(fullscreen, " so set to windowed") fullscreen = false else: DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN) print(fullscreen, " so…
G
Hi everyone! I’d like to share NConsole, a homemade 8-bit game console I designed from scratch and built inside Godot 4.7. It has its own CPU, instruction set, video and audio hardware, cartridge format, assembler, and debugger. No existing console is being emulated here — this is an entirely custom machine. The console N8 CPU: 8-bit processor with A/X/Y registers, a 64 KB address space, around 120 opcodes, flags, a stack, subroutines, and a VBlank interrupt. Graphics: 160×120 resolution,…
G
Godot Version 4.72 Question I am following a tutorial by Brackeys to learn Godot. The next step is to add a background. He does this by going to layers in TileMap, and makeing 2 layers, he then moves the background layer on top and paints. I used TileMapLayer and i have no idea how to do that 4 posts - 3 participants Read full topic
G
Hello godot forum : ) Heres my WIP 2D party arena shooter made with godot 4 It’s local-only multiplayer – I’m getting better at netcode but I doubt this game could be rewritten with netcode without a month or so of effort so I’ll probably do that after release as an experiment when I’m satisfied with content and the features. The codebase is SUPER messy as it’s my first project. I’ve tried to keep the controls slimmed down as obviously I don’t want it to be hard to fit 2 people’s hands on the…
G
Godot Version 4.4 Question Im writing a script to proceduraly generate random rectangles that never overlap. I tried to prevent rects from overlapping by storing coords of all next rect’s tiles in an array and checking if at least one of those coords is in the array of all ever generated coords. Only if they all are completely new, it draws the next rect As you can see on the image below, some rects generate correctly, and some merge @tool extends Node class_name RectangleGenerator @export var…
G
For some reason, whenever I try to make my player’s speed a global variable, it change the root of my head and camera nodes. I don’t think i’ve EVER seen anyone else with this problem so how in the world do I fix this? Thanks. extends CharacterBody3D @export var speed = 7.0 @export var sprint_speed = 14.0 const JUMP_VELOCITY = 4.5 @onready var head: Node3D = $head @onready var camera_3d: Camera3D = $head/Camera3D func _ready() -> void: Input.mouse_mode = Input.MOUSE_MODE_CAPTURED # First person…
G
Godot Version Godot 4 Question Im trying to create an effect where when the person clicks the button, a blood spatter image pops up and gradually fades back down to being invisible. Im new to godot so be nice to me lol. Any idea where to go from here extends Button @export var normal_scale: Vector2 = Vector2(1, 1) @export var hover_scale: Vector2 = Vector2(1.1, 1.1) @export var duration: float = 0.5 var tween: Tween var blood_spatter_tween: Tween func _ready() -> void: pivot_offset = size / 2…
G
Godot Version 4.6.2 Question Hi everyone! I’m trying to get a random point from a nav mesh, but it needs to be inside the camera boundaries. The camera projection is set to orthogonal, so I believe it is like a box. How can I get this? 6 posts - 2 participants Read full topic
G
Godot Version Godot 4.7 Question So I'm working on some kinda of parrying, and while it functionally works, it's the animation I'm having trouble with. Example, I have this animation for an attack: When it connects with another attack, I want it to jump to the “clashed” marker, and pause there: But, when the attack is parried, it just pauses right where it is. I tried stopping the animation first then playing from the marker, but then it just stops at time=0: This is a parried attack looks: See…
G
Godot Version Godot 4.7 Question I am making a Papers, Please inspired game where you read documents and approve them is disapprove them based on specific words or symbols. I want to have the words be highlighted on the document, and the player is scored based on if they found and highlighted all the necessary words/symbols. Ideally, I would let the player freehand highlight. I think that’s more fun than simply clicking the word to highlight it. Example document: Name: Example, Author Date:…
G
Godot Version v4.7.2.stable.official Question All the variables and attributes and whatever that come built-in with a node have a little description when you hover over it. I wanted to ask if there is a way to also give these descriptions to custom-made variables that are @export-ed to the editor UI. (While we’re at it: Can one also set descriptions for items in an enum?) 2 posts - 2 participants Read full topic
G
Godot Version 4.4.1 Question I stepped away from a project for a while and just picked it back up, so I’m a little rusty, but I will do my best to explain my problem. Overall Goal: I am creating a digital version of the Alethiometer, a divination tool from the His Dark Materials book series. It is a compass with 36 symbols placed along the dial. Their are 4 needles total. The player is able to rotate three of the needles to point to a specific symbol in order to frame a question, then click a…
G
Godot Version godot-4 how do i make a textured option button. im making a 2d pixel art game and previously i was just using a grey options button with the text "display" and if it was pressed it would drop down and give the options fullscreen or windowed and it would let the player choose which one, but now ive made pixel art for the button and i dont know how to do an option button with pixel art, i know how to do normal pixel art buttons (textured buttons) but i dont know how to make dropdown…
G
Felt like making something cozy to celebrate Fall, so I did. tweens.gd | Fall '26 Mini-Showreel “in development” because it’s still in beta, but it’s an open beta. (as it’s free and open source) 1 post - 1 participant Read full topic
G
Hello, would you like to type less code (but still code) to tween your nodes? Would you like fewer “surprising” side effects and more graceful edge cases? Or just the choice of different IN and OUT curves? Easy the Ferret has you covered. tweens.gd can be used in parallel to or as a replacement of Godot’s Tween. tweens.gd | Fall '26 Mini-Showreel Godot Asset Store tweens.gd - Godot Asset Store A clever little tweening library! Supports C# and GDScript. Always free and open source. Has an…
G
Godot Version 4.7.2 Question Got a problem here, animation won’t stop playing on load and it locks into the idle animation when I try to change it 2 posts - 2 participants Read full topic
G
Godot 4.7 Stable Hello, i have a 3D game where i want to chop down trees. Currently i’ve implemented the ability to chop logs into pieces, but i’m kind of stumped on how to connect logs together to form trees. I’ve tried Generic6DOFJoint3D, and they’re ok for my use, but i’m not sure of a good way to check if the log is connected to a joint, and on what side it is connected. I’ve thought about adding all joints to a joint node and checking each joint to see what it connects, but i feel that its…
G
Godot Version 4.7.1 Question So I have a ridgd body and an area 2d I am trying to detect when the ridged body is in the area 2d but i cant do body entered because the object is being dragged so I am trying to do when the user stop dragging and if its in area 2d. func check_box() -> void: for area in get_tree().get_nodes_in_group("sorting_boxes"): if area.overlaps_body(self): print("Box detected: ", area.types, " | Item: ", type) if area.types == type: freeze = false gravity_scale = 1 return…
G
Godot Version v4.7.2 Context For context I’m trying to do a project similiar to 2017 mobile horror game Granny. The main gimmick in that game was the fact that every physical object made a sound when dropped. I thought it would be pretty easy to replicate and that’s how it seemed at first, but then very annoying problem appeared. The Problem The problem is that sometimes, when rigid body is dropped, sound just doesn’t play. I checked the _on_body_entered function first and it works fine, so its…
G
Godot Version 4.7 Question I want to render each chunk in my voxel game separately from my main thread so I don’t get lag spikes each time I load part of the world, but I’m not sure how. I luckily have a diagram of my class structure below(I don’t know if this will format right on the forum here) Player node may access Level Level | L ChunkGrid | | | L ChunkGenerator | | | L ChunkRenderer | | | L Dictionary[Vector3i,Chunk] | | | | | L PalettedVoxelGrid | | | L VoxelGrid | L (reference to…
G
Godot Version v4.7.2.stable.arch_linux [ed1daf0bf] Question Hi :3, I’m want to add these “background hills” to my game that you can jump through andget on top of. I’m doing it with another TileMapLayer. I was wondering if theres a quick way to setup one way collisions on them. doing it by hand seems wrong, cause if I change something on the background i then have to move every point of the collider around, any suggestions? the script on the colliders is just this, it makes the player be able to…
G
Godot Version v4.7.2.stable.official [ed1daf0bf] Question What the title says. When I’m on a ladder and I get hit by something while holding right or left, I get kicked back much further than I normally would. Relevant player code: func _physics_process(delta: float) -> void: if OS.is_debug_build(): debug_print() if allow_input: input_vector = get_input_vector() position.x = round(position.x) position.y = round(position.y) if is_affected_by_gravity: if velocity.y < 0: velocity.y += GRAVITY *…
G
I’ve been writing a 3D City-Builder, inspired by The Settlers and Timberborn, amongst others. Set in a spooky Victorian Model Town, you build up your City, and watch the Citizens work away… until Disasters strike! Can you rebuild Hawk Hill Manor, and uncover the Secret of the Scarlet Sisters? As I struggled to find any specific guidance on City Builders, I have started writing my own Guide/Tutorial. It is very much a Work-in-Progress, and I would appreciate feedback! maddwarf.co.uk start [Hawk…
G
Godot Version v4.7.2.stable.official [ed1daf0bf] Question I’m making a generic projectile class and I have the Area2D hooked up to the area_entered signal for the player’s hitbox and body_entered for the tilemap. However, while it detects the player correctly, it does not detect the tiles at all, even though all the layers so far seem to be set up correctly. What am I doing wrong? class_name Projectile extends CharacterBody2D @export var speed: int @export var gravity := 500 @export var…
G
Godot Version 4.7.2 Question Hello, I am trying to make a 3D point and click horror game, akin to At Dead of Night, only I’m actually trying to make it in the engine, not the weird mp4 approach that game did. I’m making a system of nodes that determine where I move to and how, and right now I’m starting with my most basic one: The MoveNode, consisting of an Area3D and and a collision box, which would 1. Detect a click from the player and 2. Transmit its position somehow so the player can begin…
G
Question Regarding the code snippet: I’m developing a classic turn-based roguelike, and I want to wait for the delay during the enemy’s turn before proceeding to my turn, but as shown in the log, the processing is failing. What could be causing this? Problem Occurring The game proceeds on its own, as shown in the log. The player moves, and then the enemy keeps moving on its own—I can’t control it. What I’ve Checked and Investigated Asked a question on Gemini As shown in the log below, the issue…
G
Godot Version 4.7 .2 Question Is ther any tutorial on how to make a working online game free to host? (peer to peer over the internet? maybe?) My problem is I can’t pay for a server but ther are free servers (I think) but all godot tutorials bee like: setup multiplayer spawner and syncer node and.. bye! hosting should be super easy… (video ends) IT IS NOT! thank you for reading. ps: I just want to test stuff with friends, I dont need a scalable server architecture or so… 44 posts - 4…