Noob here again - sorry.
I’m working on a run-around type game. Player runs and is chased by enemy.
on Enemy, I have a variable = ‘stun’ = 0;
if player sword (animation #2) touches enemy, then set stun = 1.
Apologies if this gets confusing.
I also have this:
So, the idea is… if player attack hits enemy… freeze enemy for xx seconds and resume chase.
Hope this helps.
I have a feeling my code is messy and I’ve gotten myself in a tis.