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 [2019/07/09 11:35]
piyushpalawat99
gdevelop5:events [2019/08/16 07:27] (current)
4ian
Line 1: Line 1:
 # Events # Events
 {{ :​gdevelop5:​event-screenshot.png?​nolink |}} {{ :​gdevelop5:​event-screenshot.png?​nolink |}}
-Events in GDevelop allow you to visually program ​your game without ​any prior programming knowledge ​or experience, so anyone with any background will be able to create the actual gameplay and allow players to interact with the game+Events in GDevelop allow you to create the logic that is running ​your game. Events are readable by anyone and can be authored ​without ​advanced ​programming knowledge.
  
 Even for experienced programmers,​ events are fast to write and read. They allow artists, designers, level designers and anyone working on the game to understand and update the rules of the game. Even for experienced programmers,​ events are fast to write and read. They allow artists, designers, level designers and anyone working on the game to understand and update the rules of the game.
Line 7: Line 7:
 ==== Event types ==== ==== Event types ====
  
-There are different ​type of events in GDevelop ​that can be used for different purposes:+There are different ​types of events in GDevelop:
   * [[gdevelop5:​events:​standard|Standard event]]: this event is the default one and is triggered every single frame. It executes the actions once the conditions are true, then moves on to the next event.   * [[gdevelop5:​events:​standard|Standard event]]: this event is the default one and is triggered every single frame. It executes the actions once the conditions are true, then moves on to the next event.
   * [[gdevelop5:​events:​foreach|For Each event]]: this event is triggered for each and every instance of the selected object, ​ checks the conditions, and then executes the actions for each individually before moving to the next event.   * [[gdevelop5:​events:​foreach|For Each event]]: this event is triggered for each and every instance of the selected object, ​ checks the conditions, and then executes the actions for each individually before moving to the next event.
Line 48: Line 48:
  
 ==== Move events ==== ==== Move events ====
-You can move events such that they are removed from the original ​position ​and pasted ​to a different ​position. This can be done by right-clicking on the event to be moved and selecting the "​Cut"​ option. This will remove the event from the events sheet.+Unlike copying, when you move an event, its position ​is changed rather than being duplicated ​to a new position. This can be done by right-clicking on the event to be moved and selecting the "​Cut"​ option. This will remove the event from the events sheet.
  
 To paste the event, right-click on the event above which your event should be pasted and select the "​Paste"​ option. To paste the event, right-click on the event above which your event should be pasted and select the "​Paste"​ option.
Line 68: Line 68:
  
 {{ :​gdevelop5:​action_cut_paste.gif?​nolink |}} {{ :​gdevelop5:​action_cut_paste.gif?​nolink |}}
- 
-If you cut a condition, make sure to paste it by right-clicking on the "Add condition"​ option and if you cut an action, make sure to paste it by right-clicking on the "Add action"​ option. If you paste a unsupported condition in the action or vice versa, you will see the "​Unknown or unsupported instruction"​ message instead of the condition/​action. 
  
 <​note>​Some features might be supported both, as a condition as well as an action. For example, "Pick a random object"​ or "Pick all objects"​ are present as a condition as well as an action.</​note>​ <​note>​Some features might be supported both, as a condition as well as an action. For example, "Pick a random object"​ or "Pick all objects"​ are present as a condition as well as an action.</​note>​