Friday, November 5, 2010

Mouse pointer

This is the simple script for making a character move to a mouse pointer.

  • We have to put the "when flag clicked" button so that we know when the character will begin to chase after the mouse pointer
  • we need to put the forever control option otherwise it will have a time limit which doesn't make any sense
  • of course we need to put the point towards a mouse pointer so that the character faces that way. if we simply do this and not put the "move 10 steps" bit then the character will not move but will simply turn to the mouse pointer
  • The purpose of "move 10 steps" is to make the character chase after the mouse rather than just staying still. I personally found out that 10 steps was too fast therefor  I would recommend 6 steps.

No comments:

Post a Comment