Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
gdevelop5:tutorials:geometry-monster:9-adding-bombs [2019/12/04 09:33] 4ian |
gdevelop5:tutorials:geometry-monster:9-adding-bombs [2019/12/09 21:17] bouh |
||
---|---|---|---|
Line 6: | Line 6: | ||
It's great to have the core mechanic of collecting the shapes in place, but it gets boring quite quickly, and it's way too easy. What if we could increase the difficulty level by introducing objects that you shouldn' | It's great to have the core mechanic of collecting the shapes in place, but it gets boring quite quickly, and it's way too easy. What if we could increase the difficulty level by introducing objects that you shouldn' | ||
- | {{ : | + | {{ : |
Click to "Add a new object" | Click to "Add a new object" | ||
- | {{ : | + | {{ : |
...and select the " | ...and select the " | ||
- | {{ : | + | {{ : |
" | " | ||
- | {{ : | + | {{ : |
Add another comment, and call it " | Add another comment, and call it " | ||
- | {{ : | + | {{ : |
Add new condition, search the "Other conditions" | Add new condition, search the "Other conditions" | ||
- | {{ : | + | {{ : |
Within " | Within " | ||
Line 34: | Line 34: | ||
<note tip>Feel free to change this value to make the game harder. We'll see in a next chapter how to speed up bombs as the time is passing - to make the game more challenging. You could also use a variable instead of a number, so that you can change during the game the time between the creation of bombs!</ | <note tip>Feel free to change this value to make the game harder. We'll see in a next chapter how to speed up bombs as the time is passing - to make the game more challenging. You could also use a variable instead of a number, so that you can change during the game the time between the creation of bombs!</ | ||
- | {{ : | + | {{ : |
Now the action - select the " | Now the action - select the " | ||
- | {{ : | + | {{ : |
The second action to add is "Start (or reset) a scene timer" in " | The second action to add is "Start (or reset) a scene timer" in " | ||
- | {{ : | + | {{ : |
It should look like this above after you successfully complete the steps. If it is, add another action. | It should look like this above after you successfully complete the steps. If it is, add another action. | ||
- | {{ : | + | {{ : |
Remember about having the " | Remember about having the " | ||
- | {{ : | + | {{ : |
We'll make sure the bomb is in front of the shapes, and not behind them - to do that, we're gonna use __Z order__. It's a way to tell the game how we want the objects to be rendered. " | We'll make sure the bomb is in front of the shapes, and not behind them - to do that, we're gonna use __Z order__. It's a way to tell the game how we want the objects to be rendered. " | ||
- | {{ : | + | {{ : |
Launch the game and see the shapes falling down the screen, with bombs appearing once every few shapes and falling independently. Colleting shapes give you points, while bombs do nothing yet. | Launch the game and see the shapes falling down the screen, with bombs appearing once every few shapes and falling independently. Colleting shapes give you points, while bombs do nothing yet. |