This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:guides:beginners:survival [2018/06/29 12:23 (7 years ago)] – In line with init projects sausage | en:guides:beginners:survival [2025/09/30 17:26 (4 weeks ago)] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Keeping alive is key in a platformer. The monsters need to be a threat to our hero. If a monster touches our hero, he should explode in a shower of bits. That's game over. | Keeping alive is key in a platformer. The monsters need to be a threat to our hero. If a monster touches our hero, he should explode in a shower of bits. That's game over. | ||
| - | For the explosion for our hero, let' | + | For the explosion for our hero, let' | 
| {{ : | {{ : | ||
| Line 11: | Line 11: | ||
| < | < | ||
| [SparkGraphic] | [SparkGraphic] | ||
| - | Texture = +.png | + | Texture = plus.png | 
| Pivot = center | Pivot = center | ||
| Line 57: | Line 57: | ||
| Before we can deal with the collision between monster and hero, we need to ensure the flags of the hero knows about monsters: | Before we can deal with the collision between monster and hero, we need to ensure the flags of the hero knows about monsters: | ||
| - | < | + | < | 
| [HeroBodyPart] | [HeroBodyPart] | ||
| Type = box | Type = box | ||
| Line 85: | Line 85: | ||
| </ | </ | ||
| - | So if the hero and the monster touch, disable the hero and place a '' | + | So if the hero and the monster touch, destroy the monster, disable the hero and place a '' | 
| Compile and run it: | Compile and run it: | ||