Moved by player 2
In a two-player game, hand a sprite to the second player so they steer it with their own keys.
What it does
Normally every key-controlled sprite listens to player 1. Once your game has two players, each sprite with a key movement gets a Moved by setting. Choose Player 2 and that sprite listens to player 2's keys instead.
Player 2 starts with W A S D to move and Q and E to fire. Player 1 keeps the arrow keys and Space. You can change any of them.
Which movements can be handed over
The ones a player steers: Arrow keys (8 directions), Platform (walk and jump), Racing car (seen from above) and First-person (3D levels). Balls, patrols and chasers move by themselves, so they have no Moved by setting.
How to set it up
- In the Level tab, click empty space so the panel shows the level and whole-game settings.
- Open โธ Player keys and tick Two players on one keyboard. The Player 2 keys appear underneath.
- Click the second hero. Under Movement, set Moved by to Player 2.
- Press โถ Play level. Arrows move one hero, W A S D the other.
The hint under the keys says it too: "Player 2's keys. Pick โMoved by player 2โ on a sprite's movement, and use the Player 2 events."
Rules for player 2
Once there are two players, the Events tab grows a โป Player 2 column next to โบ Player 1. It has its own score and lives.
- Player presses Fire 1 comes in a Player 2 version, so Q can fire a second laser.
- Add to score and Subtract lives have Player 2 twins in that column.
- A Score or Lives display has a Shows setting: Player 1 or Player 2.