Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 5379
0 votes

How to implement game speed setting?

I think these kinds of games usually separate their simulation from their regular update and render loops. That allows them to rapidly update the sim while keeping a normal framerate for rendering. Tw …
idbrii's user avatar
  • 987
3 votes
Accepted

Why does find_child not work during _ready, but looping over child nodes finds the child?

find_child docs say: Node find_child ( String pattern, bool recursive=true, bool owned=true ) const ... If owned is true, this method only finds nodes who have an assigned owner. This is especially i …
idbrii's user avatar
  • 987
1 vote
3 answers
4k views

How to get nested child node without using full path in Godot?

How to get nested child node without using full path? I tried with just node name, it doesn't work. The script is on top level so the path is quite long: dialogText = GetNodeOrNull<RichTextLabel>("VBo …
idbrii's user avatar
  • 987
2 votes
Accepted

How to get nested child node without using full path in Godot?

The simplest way is Node.find_child(), but that does a search each time it's called which can be slow.* When you're done prototyping, you'll want to change to another method. You could do a Unique Nam …
idbrii's user avatar
  • 987
1 vote

What's the correct way to use NavigationAgent3D in Godot?

Usually, a good place to start is the godot demos. There's a 3D Navigation demo with a character moving along ramps and multiple levels. However, only the Godot 3.x version of that demo uses NavAgents …
idbrii's user avatar
  • 987
0 votes

"Springy legs" for a First Person Controller in Godot 4

You could use a tween to bounce the camera when you land. That requires two things: detecting when you land bouncing the camera Modifying MovementController.gd in the template you're using to someth …
idbrii's user avatar
  • 987
1 vote
1 answer
1k views

How do I make a 3D cursor that follows the mouse in Godot?

I want to position a 3D object at my mouse cursor. How can I do that in Godot? In Unity, I'd use Camera.ScreenToWorldPoint.
idbrii's user avatar
  • 987
3 votes

How do I make a 3D cursor that follows the mouse in Godot?

Camera3D.project_position is the Godot equivalent function. Here's an implementation that can either move the position with fixed orientation or can also point the cursor object. I'm using _g to indic …
idbrii's user avatar
  • 987
0 votes
1 answer
2k views

How to check if a point is on the navmesh?

How do I know if a node is in within a navigation rectangle? I am working on an enemy spawner that puts enemies off screen but I need to pick positions where the enemies will actually work (read: on a …
idbrii's user avatar
  • 987
3 votes

How to check if a point is on the navmesh?

I'd find the closest point (NavigationServer3D.map_get_closest_point()) and check the distance between them. If it's on the map, the distance would be approximately zero. Also, that likely gives you a …
idbrii's user avatar
  • 987
4 votes
1 answer
4k views

How do I place objects so they snap to my TileMap in Godot?

When I'm placing objects on tiles in my TileMap, they snap to positions that aren't on my tile's grid. I drag my object to the middle of the grid square, but it keeps snapping to the corners. I'm talk …
idbrii's user avatar
  • 987
5 votes
Accepted

How do I place objects so they snap to my TileMap in Godot?

Godot snaps to the grid guidelines and not the cells between them. So you won't snap to the middle of the square that you're dragging to. That's because you're snapping the position of the object (tha …
idbrii's user avatar
  • 987
1 vote

How to make a derived value setter in godot editor without @tool?

My current solution is to remove @export from these derived values: ## Height in world units. @export_range(1, 160) var jump_height: float = TILE_SIZE * 4 ## Height in tile count. var jump_tiles: floa …
idbrii's user avatar
  • 987
1 vote
3 answers
65 views

How to make a derived value setter in godot editor without @tool?

I have some platformer code to make my character jump based on height. I'd like to be able to tune it in the editor using both world units or number of tiles. I can do this with setters: extends Chara …
idbrii's user avatar
  • 987
1 vote

How to Y-Sort a multi-tile entity as a single tile?

You should be able to adjust the Y-Sort Origin of the top tiles to be at the same y position as the bottom tiles. That way all four tiles will get y sorted the same and behave the same relative to the …
idbrii's user avatar
  • 987

15 30 50 per page