How would I go about making the pacman in my game change
direction when he moves. Is there any code to make him rotate left
or right 90 degrees when left or right is pressed or "face
downwards" when down is pressed? thanks.
> How would I go about making the pacman in my game
> change direction when he moves.
How would I make the Pac-Man in *my* version do the same?
could anyone possibly know, since I haven't yet provided any
how I implemented the game?) Programming is a complex
subject, and each
effort is a unique challenge. What steps have you taken so
far? Are you
coding in AS1, AS2, or AS3?
> Is there any code to make him rotate left or right 90
> degrees when left or right is pressed or "face
> when down is pressed? thanks.
The MovieClip class features a number of useful properties,
events, that may interest you in regard to your game
(assuming you're coding
in AS2). You might use the MovieClip._rotate property, for
rotate your Pac-Man clip. You might use the MovieClip._width
MovieClip._xscale properties to horizontally flip your clip.
Are you programming this game from scratch, or are you
snippets from existing code?