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
Previous revision
gdevelop5:events:repeat [2018/07/20 15:51]
4ian
gdevelop5:events:repeat [2019/06/13 20:55] (current)
piyushpalawat99 [Examples]
Line 1: Line 1:
 # Repeat events # Repeat events
  
-Repeat events ​are working ​like standards ​[[gdevelop5:​events|events]],​ but they are repeated multiple times in a row before continuing to the next events ​(this means that the other events ​are not executed ​as long as the number of repetition ​has not been reached).+Repeat events ​work like standard ​[[gdevelop5:​events|events]],​ but they are repeated multiple times in a row before continuing to the next event in the list. The events that follow ​are not executed ​until the number of repetitions ​has been reached.
  
-Note that this count can be an expression, so that you can make the number of repetition varies ​according to something that the player does (for example, create a different number of enemies according to its life) or to any other thing. For exampleyou can create a random number of objects on the scene (see the example below).+Note that this count can be an expression. That means that you can make the number of repetitions vary according to something that the player does. For example, ​you can create a different number of enemies according to an object'​s ​life countposition, etc. You can also create a random number of objects on the scene (see the example below).
  
 {{ :​gdevelop5:​events:​repeat-example.png?​nolink |}} {{ :​gdevelop5:​events:​repeat-example.png?​nolink |}}
Line 11: Line 11:
 <note tip>​**See it in action!** 🎮\\ <note tip>​**See it in action!** 🎮\\
 Open these examples online.</​note>​ Open these examples online.</​note>​
 +
 +**Diagonals**
 +
 +[[https://​editor.gdevelop-app.com/?​project=example://​find-diagonals|{{:​gdevelop5:​events:​diagonals.png?​|}}]]
  
 * https://​editor.gdevelop-app.com/?​project=example://​find-diagonals * https://​editor.gdevelop-app.com/?​project=example://​find-diagonals
-* https://​editor.gdevelop-app.com/?​project=example://​zombie-laser 
  
 +**Laser**
 +
 +[[https://​editor.gdevelop-app.com/?​project=example://​zombie-laser|{{:​gdevelop5:​events:​lasernew.png?​|}}]]
 +
 +* https://​editor.gdevelop-app.com/?​project=example://​zombie-laser