Introduction to Flash and Actionscript

S3 - Tweens using Codes

A2 - Pacman Simulation

 

 

 

Find a pacman maze and add it to your background. Find a maze that does not have any dots

Find/Draw a pacman. The mouth of the pacman must open and close.

Move the pacman through the maze using code. The pacman must enter on one side and exit on the other and then reappear back on the other side.

The pacman does not need to complete the entire maze but must travel in all 4 directions.

Flipping the Pacman

// flip vertical
scaleY = -1;
// flip horizontal
scaleX = -1;