All examples · Physics · As Markdown, for AIs

Character in a retro world

What this example shows

The platformer's character, useTileBody2d, in a scene with a retro world: it is then one of the world's bodies. It still walks the map as it does alone, with ledges dropped through with down, ladders climbed with up and slopes, and now it also pushes the crates, rides the lift, and cannot push the enemy out of its way.

The enemy turns round by itself with castRetroRay2d: a ray down just ahead of its feet finds no floor at the end of its ledge, and a ray ahead finds the wall. Arrows to move, Z to jump.

Starting
Starting
—