Follow the mouse
With this algorithm the character will follow the mouse around, it can be used to control the main character.
Here when the green flag is clicked the character starts to follow the mouse around.
This is a repetition algorithm, as the character will follow the mouse forever until the gamer decids to stop. The algorthistum instructs the character to continuously point at the mouse point and move along with it.
No comments:
Post a Comment