Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
gdevelop5:events:foreach [2018/10/13 23:56]
valiant_curiosity [For Each events]
gdevelop5:events:foreach [2019/05/19 14:09]
piyushpalawat99
Line 1: Line 1:
 # For Each events # For Each events
  
-A For Each event is a kind of [[gdevelop5:​events|event]] that will take an object as parameter. Then, during the game, for every instance of the object, the conditions and actions will be repeated.+A For Each event is a kind of an [[gdevelop5:​events|event]] that will take an object as parameter. Then, during the game, for every instance of the object, the conditions and actions will be repeated.
  
 Usually, you don't need to use "For Each" events. Conditions and actions will automatically run on all of the objects. They are defined by their conditions. However, from time to time, "For Each" events can be useful to run an action that depends on each instance of the object. Usually, you don't need to use "For Each" events. Conditions and actions will automatically run on all of the objects. They are defined by their conditions. However, from time to time, "For Each" events can be useful to run an action that depends on each instance of the object.
Line 23: Line 23:
  
 {{ :​gdevelop5:​events:​for-each-example.png?​nolink |}} {{ :​gdevelop5:​events:​for-each-example.png?​nolink |}}
-