CheeseMyBaby
Member
Good day,
I'm working on enemy AI at the moment. I have a state machine with 10+ states (in a switch).
The states change as they should but I have lots of problems with collision checks (they don't seem to work) so my question is this.
Where do I put those checks?
I've tried to put it...
* ... in all kinds of step events (begin/step/end).
* ... first & last in said events.
* ... in a script where I've called it like stated above.
* ... Calling the said script form inside every case in the switch.
Still it completely ignores walls and stuff and behaves like a flying ghost.
I'm working on enemy AI at the moment. I have a state machine with 10+ states (in a switch).
The states change as they should but I have lots of problems with collision checks (they don't seem to work) so my question is this.
Where do I put those checks?
I've tried to put it...
* ... in all kinds of step events (begin/step/end).
* ... first & last in said events.
* ... in a script where I've called it like stated above.
* ... Calling the said script form inside every case in the switch.
Still it completely ignores walls and stuff and behaves like a flying ghost.