2D Related Things

Table of Contents

Load pixel art resources howto

Use 2D Pixel Preset
Use 2D Pixel Preset

Create a new AltasTexture howto

click the new button, and select AltasTexture.
click the new button, and select AltasTexture.

Select the desired region and margin.
Select the desired region and margin.
Don't forget to save. Othewise, the changes are only in memory.
Don't forget to save. Othewise, the changes are only in memory.

CanvasLayers reference

You can exploit CanvasLayer to render several things separately.
You can exploit CanvasLayer to render several things separately.

2D Movement Overview tutorial

# using move_and_collide
var collision = move_and_collide(velocity * delta)
if collision:
    velocity = velocity.slide(collision.normal)

# using move_and_slide
velocity = move_and_slide(velocity)

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 Unit Offset is 0
When Unit Offset is 0
When Unit Offset is 0.5
When Unit Offset is 0.5