New answers tagged gdscript
1
vote
Simple Circuit System
tl;dr: model the circuit network as a linear system of equations to easily solve for the current and voltage at every node using off-the-shelf linear algebra software.
It depends how realistic you ...
3
votes
Accepted
Simple Circuit System
One option is to group all the connected wires into a single logical network that handles distributing power. This has the advantage of being very cheap except when dealing with removing connections ...
1
vote
Accepted
Actual Custom Nodes in Godot
If you make an script like this:
@tool
extends CharacterBody2D
class_name Player2D
Then you can add a CharacterBody2D to your ...
3
votes
Area2D only detecting body_exited once
The ball being an static body is odd... I suspect the Area2D is not detecting the static body at all, see the issue: Area2D does not detect moving StaticBody2D.
I ...
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 ...
0
votes
Accepted
How do I determine which pixel is under the cursor when looking at an equirectangular image through a camera?
We can attack this in stages.
First, we convert the point clicked on the screen into a direction in the 3D world, the same way we'd do if we were casting a ray from the camera for 3D picking. For ...
0
votes
How can I change scenes when the player touches another CollisionShape2D in Godot 3.5?
I suspect the reason why your scene transition triggers immediately is the signal you're currently intercepting.
I assume the method _on_Area2D_body_entered() is in ...
1
vote
Accepted
Is it possible to do conditional compilation in Godot at this time, via export settings?
Searching for "Godot conditional compilation" led me to this GitHub discussion proposing the feature, though to less-than-rave reviews.
In the comments, someone linked a proposal to ...
Top 50 recent answers are included
Related Tags
gdscript × 116godot × 91
godot-4 × 27
2d × 9
collision-detection × 9
godot-3 × 9
3d × 6
animation × 4
c# × 3
platformer × 3
physics × 2
textures × 2
sprites × 2
game-mechanics × 2
input × 2
events × 2
debugging × 2
navmesh × 2
texture-atlas × 2
memory × 2
tree × 2
plugin × 2
messaging × 2
unity × 1
c++ × 1