Skip to main content
1 vote
1 answer
77 views

Instancing in Godot

How big is the difference between instancing a scene with c# compared to GDScript? I noticed on the docs that it does say that when instancing a scene "Preloading the scene can improve the user's ...
Alvin Lee's user avatar
0 votes
3 answers
83 views

Dynamically update CollisionPolygon2D at runtime? [closed]

I have a stacked area chart like the supplied image (but often slightly more complex). Each polygon doesn't have all too many points and renders efficiently. This chart often updates with a tween ...
Zoom's user avatar
  • 474
0 votes
1 answer
75 views

Why does comparing array.size() with a const return an Object, not a bool?

So I’m running into an issue while implementing an ‘undo’ mechanic in Godot Engine v4.4.1 using GDScript. I’m trying to limit the size of the undo queue, and cut off the end once it exceeds the limit. ...
Joey Electric's user avatar
1 vote
2 answers
79 views

Flashlight Turn OFF

There is a code of Flashlight with Battery in Godot 3D that turns ON when you press Left Mouse Button, but turns OFF the moment you release the button. How do I make it turn OFF, ONLY after pressing ...
Cold Ghost34's user avatar
0 votes
1 answer
66 views

How am I supposed to be managing instances so that I don't affect old instances of the same scene

What is supposed to happen: 5 blocks should be created above the screen and scroll down the screen at a the same speed. Every 5 seconds, a new set should be loaded in the same place that the original ...
SirLoring's user avatar
1 vote
1 answer
30 views

Trouble detecting whether a line segment intersects a ray

I'm following this guide to determine whether a line segment intersects a ray. My code, adapted from the python solution on that page, looks like this: func do_lines_intersect(line: Array[Vector2], ...
Max's user avatar
  • 1,384
0 votes
1 answer
74 views

High level multiplayer not working in Godot 4.4.1

I can't make the multiplayer work correctly, either when I enter the game with the client the client player despawn almost instantly, in both the host session and the client session and I get this ...
traponsix's user avatar
0 votes
1 answer
32 views

My inventory is malfunctioning (in Godot)

I've been programming an inventory system. When I created the function to drag objects from one slot to another, I've been stuck even after some research. At first, objects are dragged, but the ...
Charles Dev's user avatar
0 votes
0 answers
52 views

Cannot create closed collision polygon dynamically

I'm having trouble creating the collision polygon for my curved lines. I'm creating it dynamically and its shape is not closed for some reason. In my scene I have a Line2D, a Path2D, and I create a ...
Lheonair's user avatar
  • 518
1 vote
1 answer
49 views

Godot 4.4.1 C# Error 'no suitable method found to override'

In Godot, I get the error 'no suitable method found to override' for the default _Ready() function. using Godot; using System; public class Box { public enum BoxType { //HURT_BOX, ...
jacobzacarias's user avatar
0 votes
0 answers
49 views

'Nephew' node null in 'Uncle' node's export variable despite being assigned in inspector

My Player scene has a StateMachine node governing its behavior, with Idle, Move, Fall nodes as children under StateMachine. Another node, FallDownPit, listens for a signal telling it the player has ...
Max's user avatar
  • 1,384
0 votes
1 answer
41 views

Godot inherited scene does not have script variables in editor

I'm new to Godot so I'm sure I did something wrong but I can't figure out what it could be. I created a scene "piece" and then I created 8 scenes which all inherit from piece. These are ...
BrianLegg's user avatar
  • 1,700