Automated behaviours and scripts is the topic.
In my “Map” class I have 2 methods, “runScripts()” and “runBehaviours()”.
Let me explain what is my definition of a script and a behaviour.
Script:
Does conditional checks on certain objectives to see if they’ve been met.
Scripts have nothing to do with how objects behave but can be used to check an object’s properties.
Basically a script is a check if an event has occured.
Behaviour:
An object’s ability to interact and respond to external and internal events.
IE:
What do I do when a collision occurs?
Should I apologise?
I’m bored, I’ve been idling for 15ns, what can I do?
I know! I’ll run around butt naked.
That’ll show 'em.
I would like to know how you guys set script and behaviours in your code.
In my code I set behaviours to objects and scripts as external entities.