Differences

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

Link to this comparison view

Next revision
Previous revision
gdevelop5:events:repeat [2018/07/19 23:41]
4ian created
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 ​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 listThe 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 (create a random number of objects ​for instance).+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 count, position, etc. You can also create a random number of objects ​on the scene (see the example below). 
 + 
 +{{ :​gdevelop5:​events:​repeat-example.png?​nolink |}} 
 + 
 +## Examples  
 + 
 +<note tip>​**See it in action!** 🎮\\ 
 +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 
 + 
 +**Laser** 
 + 
 +[[https://​editor.gdevelop-app.com/?​project=example://​zombie-laser|{{:​gdevelop5:​events:​lasernew.png?​|}}]] 
 + 
 +* https://​editor.gdevelop-app.com/?​project=example://​zombie-laser