All examples · Scenes

Pack: logic and scenes

What this example shows

A pack that offers a scene: a room where you walk and pick up three coins, and the three scripts that make it a game (the player, the coins and the counter). It uses four input actions of its own, which the game gets when the pack lands.

Placed with createPack, a scene becomes one part of the scene that places it, like any object: here it is made smaller and placed twice, and each room keeps its own coins. Use the arrow keys.

Starting