I hope I can find help here as I did before…
I created a maze. I am seeting up AI for a creature to traverse through the maze and the movement works fine. I need help setting up the timing of the thing stepping through its phases.
The entire maze is in one frame, so moving from one frame to another is out of the question. The player character moves with each press of a directional key, so that depends on when/how quickly the player hits the button.
For the bad guy, however, I would like to set it up so that it moves one space each .5 second (or so) because I would like him to continue to move while the player is idle.
Are there any thoughts? I tried
[INDENT]if (timer() % 1000) {
[INDENT]make_movement();
[/INDENT]}
[/INDENT]
or something similar, but am having no luck.
Any help is appreciated.
Casey