Skip to main content

New answers tagged

1 vote

Area2D embedded in UI does not receive mouse events

In addition to your answer, I want to point out that a similar matter involves your "direct" approach. Since the Area2D is nested in a ...
liggiorgio's user avatar
  • 4,866
1 vote

Area2D embedded in UI does not receive mouse events

I am using the second approach with the sub-viewport: ...
O. R. Mapper's user avatar
0 votes
Accepted

Godot on signal trigger external animation

So I ended up adding a variable is_dead on player that I then set that from _on_body_entered ...
depperm's user avatar
  • 101
1 vote

Cannot figure out how to properly align content with resizing window

Make UI the root. The structure you have: (A) Node2D (B) Camera2D (C) Control Is telling me that the Control (C) will be ...
Theraot's user avatar
  • 27.2k
1 vote
Accepted

Cannot figure out how to properly align content with resizing window

I will assume you already know / have watched a YouTube tutorial on how to use Anchors and Containers to correctly layout a GUI (since these are GUI elements, it will be much easier to watch a video ...
DavidT's user avatar
  • 251
1 vote
Accepted

How to prevent the "_ready" events and pre-ready var declarations in a loaded, instantiated scene?

Is there a way to suppress these _ready events and re-declarations in this specific use case? By strictly answering your question "as asked", you could suppress the ...
liggiorgio's user avatar
  • 4,866
2 votes

How to prevent the "_ready" events and pre-ready var declarations in a loaded, instantiated scene?

Is there a way to suppress these _ready events and re-declarations in this specific use case? I don't think so, but since Godot is open source, you could probably hack the engine (C code) to do that. ...
DavidT's user avatar
  • 251
4 votes
Accepted

Theme lookup in Godot 4.2

These are, indeed, different. First of all, your Control might not have a Theme, and thus the line: ...
Theraot's user avatar
  • 27.2k
1 vote

How to rotate 2D arm around shoulder so gun points at cursor?

There's a couple of assumptions to state based on the question + gif posted. We have a static gun+arm that pivots around the player's shoulder You want the arm and gun to rotate around the shoulder, ...
Domo106's user avatar
  • 70
0 votes

How can I constrain a RigidBody ball to move along a path, but only apply forces to keep the ball on the path without adding velocity?

Given your constraints you might be better off jettisoning the physics system entirely and rolling your own system for placing the ball on the path (it sounds like you've already done a lot of the ...
Mattia's user avatar
  • 398

Top 50 recent answers are included