Time for action — very eventful games
When the player's character touches deadly spikes, we know they should lose health or die, but how does the game know this? That's where we are heading. First, we need to learn how to create events in the Event Sheet Editor.
1. Add a new sprite to the Game layer, which will be the end goal, and place it at the end of your level. Name it
Goal
, and give it theBounding box
collisions mode.2. Now put some sprites around your level named
Hazard
. They can be lava, saw blades, spikes, or any other contraption you can think of. However, this time they will keepPer Pixel
collisions mode.3. Now we are ready to switch to the Event Sheet Editor tab. Right-click while in the Event Sheet Editor, and click on Insert event in the context menu that appears.
4. Each object can have its own conditions, but for now we are going to create an
Always
condition from the menu opened by double-clicking on theSystem
object. TheSystem
object is included in every game.5....