Questions tagged [godot]
Godot is a 2D and 3D open source game engine developed by the Godot Engine community. It features a built-in development environment which runs on Windows, macOS and Linux and can create games targeting PC, mobile and web platforms.
654 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
58
views
Enemy movement system on a 2D grid (Zelda-like)
I’m trying to implement a top-down Zelda-like enemy movement system. Consider a screen of x tiles wide by y tiles tall, each tile being 16x16 pixels.
I’m not asking for code here. I’m asking for ...
1
vote
1
answer
47
views
Why isn't my control anchored to the top left of the screen
I have this simple scene based on a Control Node and a few containers, note how the UI elements are anchored to the top left of the screen:
When I put it into another scene, it looks like this:
I ...
0
votes
0
answers
43
views
Can I reference resource UIDs in save files
In Godot 4.5 beta 6, I have a drag-and-drop situation where the data being moved between nodes is stored using instances of a custom resource.
The resource instance is added to a property called ...
1
vote
1
answer
229
views
Overriding property setter
In Godot 4.5 beta 5, I am trying to override the text setter on a Label node. Following the documentation, I did:
...
0
votes
1
answer
49
views
How to format a godot::String with an array parameter in a gdextension?
I'm writing a gdextension and trying to format a string using an array as one of the parameters.
Example:
...
0
votes
0
answers
50
views
Instantiated child scene does not rotate with the parent as pivot
Version 4.4
I am starting to learn Godot by creating a game in which my ‘Player’ scene is instantiating and adding a ‘Ball’ scene as its child on starting the game. I position the Ball at a distance ...
0
votes
0
answers
48
views
What am I missing to get my animation working
I use Godot 4.4 and gdscript. I have a 2D isometric character with hundreds of sprite sheets for different angles and weapon status. Its not feasible to do this in ...
0
votes
1
answer
134
views
How to correctly set up peering bits for terrain sets/autotiling?
I'm trying to set up autotiling for this tileset in Godot:
I set the peering bits like this:
However, when I try to place the terrain tiles, all I get is this mess:
What am I doing wrong?
3
votes
1
answer
182
views
Arc Slot Layout and Card Display Overlap
I'm struggling with a persistent problem in my Godot 4.4.1 project involving "power slots" arranged around a table or arena background. No matter how I structure my nodes and update my code, ...
2
votes
2
answers
117
views
Pseudo-3D Parallax Shifting
everyone. I am working on a game that relies pretty substantially on "faking" 3D by using different parallaxing and polygonal transform techniques. In a current example, I am working on a ...
1
vote
1
answer
96
views
How to pre-process the @export variable in Godot4?
Assume I have an export "arena_size". I would like to 'pre-process' this export so that whatever value user inputs in the inspector gets multiplied by 2 Like so:
...
1
vote
1
answer
139
views
How to use @export to list all the keys of the dictionary in Godot4?
Godot 4.2
@export is rather useful as a time saving feature for node customization. We already have the @export_enum that can give user a dropdown list of choices.
However, @export_enum is "...
1
vote
1
answer
93
views
Why can't I access custom properties clearly declared with _get_property_list()?
I have the following script attached to a simple control node designed to create a custom property "label":
...
0
votes
1
answer
54
views
In Godot, how to show TextureRect texture in the editor mode but unload it before runtime to preserve VRAM?
I'm trying to optimize a bit. Assume we have an in-game "Item" object made from a simple TextureRect (no children).
Naturally, in editor mode I'd like to be able to see that item's icon (and ...
0
votes
0
answers
84
views
What technical factors might cause a CrazyGames rejection for a Godot web game?
I submitted a top-down shooter made in Godot (HTML5 export) to CrazyGames, but it was rejected without any detailed feedback. The name of the game is "Spacy Type" (available to preview here)....