GodotSimpleEventSystem

A simple event system for Godot 4.2

MIT License

Stars
1
Committers
2

SimpleEventSystem

An simple addon for Godot 4.0 (Work well with Godot 4.2)

Create sequences of events in nodes themselves.


How to use SimpleEventSystem

Add a child node and search for SimpleEventSystem (Simply searching event will also work)

After adding a callable, assign the node where you want a function to be called and apply the values leading to that function. Arguments will show in the Args array variable and will change type if functions have static typing on their parameters.

Export the variable with a static type of SimpleEventSystem. Call the invoke() function to call all the callables.


How to use SimpleEvent

This is an older iteration but it still works. The main difference is that adding one fuction will add one child node underneath the event node

Add a child node and search for SimpleEvent

Add a function

Assign the node where you want a function to be called and apply the values leading to that function

To run the functions, it's similar to the SimpleEventSystem but change the static type to SimpleEvent


Limitations

Any changes in the Event System Node, using the SimpleEventSystem node and note the SimpleEvent node, from the parent will not reflect properly on the child node. Worst, it could break the child node's Event System.

It can only currently apply static callables and does not have dynamic callables.