It is common to want to export variables out of the code and into the GUI. When you export variables in Godot, your normal methods of casting may not work.
export(Node2D) var gem # doesn't work >:-( Solution-ish(?):
You sometimes just can’t. Sorry. Godot only supports certain native types for exporting to the GUI.
var player : Node2D var gem : Node2D export var count : Integer # Only native types can be exported
Read more »Had an issue where my KinematicBody2D
would only collide with StaticBody2D
s in one direction.
Tried switching one-way collisions on and off. Nothing.
Tried changing collision shape to concave. Nothing.
Read more »