Search Results
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 |
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 …
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 …
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 …
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 …
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 …
2
votes
Accepted
How to make a CharacterBody2D slide out of StaticBody2D instead of teleporting?
The key is to use add_collision_exception_with to prevent the physics system from resolving the collision. Then you're free to implement whatever movement you want!
I assume your block is a StaticBody …
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 …
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 …
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.
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 …
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 …
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 …
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 …
1
vote
How to add a local gravity/force field in Godot?
I think the behaviour you're looking for is built into Godot with area.gravity_space_override = SPACE_OVERRIDE_REPLACE to change gravity when within a box and area.gravity_point = true to have a gravi …
0
votes
Draw a player in an isometric tilemap in the right order
Customizing Draw Order
According to this issue, there is currently no support in Godot for customizing the draw order how you want, but there are some workarounds:
Manually sort your tiles. "TileMaps …