Modular Event System
reddit.com·13w·
Discuss: r/godot

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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help