7 questions from the last 30 days
Best practices
1
vote
1
replies
52
views
Exporting a pair of values as a minimum/maximum
I'm writing a script in GDScript; I'd like to export a pair of values, e.g min_height and max_height. Obviously, I want min_height <= max_height.
Is there a way to enforce that relationship in the ...
0
votes
0
answers
51
views
Godot not printing to output console. Fresh install of godot 4.5x
In godot, I couldn't print to output panel. Everything seems to be okay, I made a root node called Main and attached main.gd script with
extends Node
const packets := preload("res://packets.gd&...
1
vote
0
answers
49
views
Why doesn't my GD script with autoloads post its variables?
When I use (Morton.morton_statetest) in another script, It gives me 0, and even if I put a print in Morton script and If I put an print in the other script, it gives me two values different, wit out ...
Best practices
1
vote
1
replies
33
views
How do I detect collision with control node in Godot?
my card scene tree
I want to make a card game where player can stack cards on top of each other (like Solitaire or Stacklands). I have a control node as the root node and Sprite2D as the child node. ...