Questions tagged [gdscript]
GDScript is a high-level, progressively typed programming language designed to work with the Godot Engine. It uses a syntax similar to Python (blocks are indent-based and many keywords are similar).
169 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
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
227
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
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 ...
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, ...
0
votes
1
answer
152
views
Godot 4 chip-8 emulator not displaying font correctly
I'm making an emulator for the chip-8 using the Godot 4.3 game engine, It's almost complete and you can play pong on it perfectly fine, But it can't display numbers from the built in font.
Each ...
2
votes
1
answer
310
views
Is await/free in gdscript a potential memory leak?
Consider a situation where a coroutine in node A awaits a signal from node B. If node B gets freed without sending the signal, obviously the coroutine in node A will never finish executing. Does it ...
5
votes
2
answers
594
views
How do I make my chip-8 emulator update at the intended rate?
I'm making an emulator/interpreter for an old console called the CHIP-8 In Godot 4.3 stable. It's going really good so far, I basically just load an external ROM into a virtual RAM (a ...
0
votes
1
answer
107
views
How to control the order of _input_event and _input?
Suppose I have these two classes
...
0
votes
3
answers
413
views
What is the difference between only extends, class_name before extends, and class_name after extends?
I am having trouble understanding the syntax in GDScript, specifically the use of class_name and extends.
I often come across ...
0
votes
0
answers
50
views
Increasing final image scaling with shaders on top to 125%?
When I apply the canvas_item barrel distortion shader to my viewport, there is a noticeable loss of resolution in the center of the screen. Therefore, is it possible to scale the final image + fisheye ...
0
votes
1
answer
115
views
Logic problem for respawn player in godot
I am new to game development and Godot. The code is gathered from multiple tutorials and now i am stuck. It almost seems to work but my problem is the respawn mechanism. Maybe someone can have a look ...
0
votes
1
answer
501
views
How to fix "Identifier not declared in the current scope" error?
When I try to run the following code in Godot, I get the error:
Line 45:Identifier "delta" not declared in the current scope.
I don't know what this means or what I should do about it.
<...
1
vote
1
answer
141
views
How do I make these nested match statements easier to read?
Still coding that awesome Turn based RPG.
I'm currently coding the logic for firstly selecting the attack then selecting the enemy (Or enemies)
...
1
vote
0
answers
107
views
How to list all cached resources?
In Godot 4.3, is there a way to list all cached resources, and their resource_path values? These may be loaded from disk or may belong to packed scenes (which would ...