**This is an old revision of the document!**

FIXME This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)

Événements

Les événements dans GDevelop vous permettent de programmer visuellement votre jeu sans aucune connaissance de programmation et sans expérience requise, donc n'importe qui est capable de créer le gameplay qu'il souhaite et permettre aux joueurs d'interagir avec le jeu.

Types d'événements

Il existe différents types d'événements dans GDevelop qui peuvent être utilisés à différentes fins:

  • standard event: this event is triggered every single frame and execute the actions once the condition is true then move on to the next event
  • for each event: this event is triggered for each and every instance of the selected object and check the conditions and execute the actions for each individually before move on to the next event
  • repeat event: this event is repeated the specified number of times before move on to the next event.
  • while event: this event is repeat continuously while the specified conditions are met and move on to the next event only after the condition if this event is no longer true.
  • sub-event: this event can be added as a child to any event mentioned above and going to be triggered only after the parent event has been executed
  • Javascript event: this event allow you to use Javascript code along with other events
  • External event: this event allow you to store a collection of events externally, and call and execute them, anywhere, anytime, any number of times.
  • Link: it is allow you to call the specified external event

Add events

In order to add events to our game, first we need to switch to the event editor. We can do that using the event tab next to our scene tab.

After that, we can find the tools on the top to add events. As the standard and sub-events are the most often used type of events, we have a quick button to use on the top. To add standard event we can use the add event button To add sub events, first we need to select an event in the editor and after click the add sub-event button You can find all the available options by clicking the plus icon

Add conditions and Actions

After add an event we are going to find a blank event in our editor

We can add any number of conditions and actions to each event. To add conditions and actions we need to click add condition and add action inside the event, then we can choose from many options sorted in to different categories. In order to learn more about how to use the different conditions and actions, I recommend to read the tutorials and guides available on the wiki: GDevelop 5 tutorials