Table of Contents
Load pixel art resources howto
Use 2D Pixel Preset
Create a new AltasTexture howto
click the new button, and select AltasTexture
.

Select the desired region and margin.
Don't forget to save. Othewise, the changes are only in memory.
CanvasLayers
reference
You can exploit CanvasLayer to render several things separately.
2D Movement Overview tutorial
- For the root node of the Entity, use
KinematicBody2D
to utilize member functions like move_and_slide
, etc.
AnimatedSprite
reference
String animation
- The current animation from the frames resource. If this value changes, the frame counter is reset.
Usage of Path2D
and PathFollow2D
discussion
- When adding
Path2D
, it will add a child PathFollow2D
node.
- Once you defined the path, you can sample a point on the path.
- Just setting offset (in pixel), it will return the coordinate on the path.
When Unit Offset
is 0
When Unit Offset
is 0.5