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:all-features:linked-objects [2019/01/06 18:22]
4ian Normalize title
gdevelop5:all-features:linked-objects [2019/05/29 17:52] (current)
akbarhabeebb [Linked Objects] Typo
Line 2: Line 2:
  
 Actions and conditions of "​Linked Objects"​ category allow us to make virtual connections between objects. We can later reference them by their links to each other. Typically, you can link two objects when creating them. You can also use a “For each object” event to take each instance of an object individually,​ and create links to other objects. Learn more about the "For each object"​ event by visiting [[gdevelop5:​events:​foreach|this page about For each event]]. Actions and conditions of "​Linked Objects"​ category allow us to make virtual connections between objects. We can later reference them by their links to each other. Typically, you can link two objects when creating them. You can also use a “For each object” event to take each instance of an object individually,​ and create links to other objects. Learn more about the "For each object"​ event by visiting [[gdevelop5:​events:​foreach|this page about For each event]].
 +
 +<note tip>
 +Some of the conditions of Linked Objects are available as both, conditions as well as actions. Conditions will be considered as false if no object is picked. If you don't want this behavior, use their action counterparts.
 +</​note>​
  
 #### Link two objects #### Link two objects
Line 11: Line 15:
 There is both an action and a condition called "Take into account linked objects"​. There is both an action and a condition called "Take into account linked objects"​.
  
-The action ​scan through the objects in the first parameters and for each one, if there is a link registered from it to any of the object ​in the second parameter, will pick it for the next actions. After executing this action, the actions that are executed next (as well as the subevents) will only execute on the objects that were picked.+This action ​scans through the objects in the first parameters and for each one, if there is a link registered from it to any of the objects ​in the second parameter, ​they will be picked ​for the next actions. After executing this action, the actions that are executed next (as well as the subevents) will only execute on the objects that were picked.
  
-The condition works the same, excepted that if no object was picked (i.e: no object in the first parameter ​was have a link to any object in the second parameter), ​then the condition will be false.+The condition works the same in all casesexcept ​if no object was picked (i.e: no object in the first parameter ​had a link to any object in the second parameter). In such a case, the condition will be false.
  
 ####Unlink all objects from an object ####Unlink all objects from an object
  
-This action removes all links in the specified object(s). They won't be virtually linked to any other objects.+This action removes all links to the specified object(s). They won't be virtually linked to any other objects.
  
 ####Unlink two objects ####Unlink two objects