Modular Event System
reddit.com·8h·
Discuss: r/godot
Flag this post

I’ve been working on a modular event system for our photography game for the last few weeks. The whole thing is broken into a few components:

Event:

The event as a whole. Has references to the trigger, actions, and conditions, as well as some parameters to modify how the event plays out.

ie: reversable, simultaneous, loopable

Triggers:

A physical node in the scene that fires a signal for the event.

ie: an area, a timer, an interactable

Actions:

One or more resources that execute sequentially or simultaneously once the trigger fires.

ie: move a target, play an animation, change camera

Conditions:

One or more resources that must be true for the actions to execute.

ie: player state, time of day, has key

All the components are put together in the…

Similar Posts

Loading similar posts...