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

Events editor

When opening a scene (or when opening external events), the Scene (Events) editor is also opened. The Events Editor is where you can add the events that create the actual gameplay. It allows players to interact with and play your game. The Events editor is a tool that lets you visually program your game. You do not need to have any programming or coding experience. Anyone can make a game in GDevelop!

To switch between the Scene editor and the Event editor you use the tabs at the top of the window.

When you switch to the Events editor, you will notice that there is a different selection of tools available:

Add event

We can add an event by clicking the add event button

By clicking this button a blank event will appear in the editor

We can add any number of event blocks to our editor and add various conditions and actions to each event block to make the game logic. You can learn more about events, on this page: Events.

Add sub event

By clicking the add sub-event button, we can add a child event block to the selected event.

After clicking the button, a blank sub event appear below our selected event

Sub events are executed only if the parent event's condition(s) are true, this way we can avoid repeating the same conditions, making the logic much easier to read.

Add a comment

By clicking the add comment button, we can add comments to our events so we can remember which events fit what purpose.

Of course, most events are self explaining but in huge, complex games it is always useful to add comments to remind us what the logic is doing exactly.

Add special events

By clicking the add an event button, along with the ones we already mentioned, we have access to some special events

Read the help about events to learn more.

Delete selected events

By clicking the Delete selected events button, events selected will be removed from the sheet

Undo/Redo changes

Any change can be undone or applied again with these buttons

Search in events

The search in events button opens a panel on the bottom on the screen so you can search for a specific term in the parameters of the conditions and actions. You can also enter a replacement and replace all the occurence of the term in the events.