Moving Mario Background
Create in Flash a scrolling background that is controlled by the arrow keys
Use the left and right arrow key to scroll the background
Click on the thumbnail below to open a JPEG image of the entire first level background of Mario.
The image is 3392 pixels wide and 232 pixels high
Program Specifications
- Create a new Flash file.
- The dimensions of the stage are 550 pixels wide and 232 pixels high.
- Import or copy the background file into the Flash file.
- Convert the image into a Movie Clip.
- Develop the Actionscript necessary so that when the movie starts, the left edge of the background is flush with the left edge of the stage. In other words _x = 0.
- When the left arrow key is down, the background will scroll to the left.
- When the right arrow key is down , the background will scroll to the right.
- When neither key is down the background will not move.
- The Up or Down arrows have no effect on the background.
- When the left edge of the background aligns with the left edge of the stage, the background will not move. Similarly, when the right edge of the background aligns with the right edge of the stage, the background will not move.
How you will be graded
When you have the program finished you will run it for me and demonstrate that it performs to the requirements written above.
You will tell me how the code in your file is designed to work.