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:while [2018/07/20 15:52]
4ian
gdevelop5:events:while [2021/11/22 23:06] (current)
Line 1: Line 1:
 # While events # While events
  
-While events are a special kind of [[gdevelop5:events|events]]: as long as the //''While'' conditions// are true, the event is repeatedwithout interruption (i.e next events are **not executed** and the screen is **not** refreshed).+While events are a special kind of [[gdevelop5:events|event]]: as long as the //''While'' conditions// are true, the event is repeated without interruption (i.e. the next events are **not executed** and the screen is **not** refreshed).
  
-They are usually not needed, but can be used to repeat actions as long as a condition is true, which is useful in the case of some algorithms that you may want to create in your game.+{{ :gdevelop5:events:whileevent.png? |}}
  
 +While events are usually not needed, but these events can be used to repeat actions as long as a given set of conditions is true. The While event is useful in some algorithms that you may want to create in your game.
 ## Examples  ## Examples 
  
Line 10: Line 11:
 Open these examples online.</note> Open these examples online.</note>
  
-* https://editor.gdevelop-app.com/?project=example://asteroids +[[https://editor.gdevelop-app.com/?project=example://asteroids|{{:gdevelop5:events:spaceshooternew.png?|}}]] 
-* https://editor.gdevelop-app.com/?project=example://pathfinding+ 
 +[[https://editor.gdevelop-app.com/?project=example://asteroids|Asteriods Example]] 
 + 
 +[[https://editor.gdevelop-app.com/?project=example://pathfinding|{{:gdevelop5:events:pathfindinggeneralnew.png?|}}]] 
 + 
 +[[https://editor.gdevelop-app.com/?project=example://pathfinding|Pathfinding Example]]