Hello, I am having an issue with a boss I am creating.
I have a time counter that sets to 60 and subtracks 20 every second. When the counter is zero he swings and the attack counter get +1 and the time counter goes back to 60.
When the counter is 3 the boss goes into defensive mode and the attack counter is reset.
The idea is that the boss swings 3 times and then goes defensive.
This all works. The issue is movement.
I want to make him move back when the time counter hits 60 and forward (same space) when the time counter hits 20. He should go back and forth as if he is coming in for the attack.
However he doesnt! instead of going forward 2 and back 2, he always goes forward 2.5 and back 2. If I leave him alone he will go right off the screen!