Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
gdevelop5:tutorials:geometry-monster:9-adding-bombs [2019/11/28 17:09]
end3r navigation
gdevelop5:tutorials:geometry-monster:9-adding-bombs [2019/12/04 09:33]
4ian
Line 24: Line 24:
 {{ :gdevelop5:tutorials:geometry-monster:127.png |}} {{ :gdevelop5:tutorials:geometry-monster:127.png |}}
  
-Add new condition, select the "Obstacle" and search the "Other conditions".+Add new condition, search the "Other conditions".
  
 {{ :gdevelop5:tutorials:geometry-monster:128.png |}} {{ :gdevelop5:tutorials:geometry-monster:128.png |}}
  
-Within "Timers and time", select "Value of a scene timer". In the right panel, enter "Time in seconds" which will be `RandomInRange(10,20)`, and "Timer's name" as "ObstacleCreation".+Within "Timers and time", select "Value of a scene timer". In the right panel, enter "Time in seconds" which will be `5`, and "Timer's name" as "ObstacleCreation".
  
 This will create a new timer that will spawn a bomb independently from spawning the shapes, and it will appear once every 5 seconds. This will create a new timer that will spawn a bomb independently from spawning the shapes, and it will appear once every 5 seconds.
 +
 +<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>
  
 {{ :gdevelop5:tutorials:geometry-monster:129.png |}} {{ :gdevelop5:tutorials:geometry-monster:129.png |}}