Hi Everyone!
I am creating a short and simple flash application in AS3 and I need some help and advice. Possibly a link to a tutorial, some knowledge or scripting help.
What I am wanting to create is application that responds to the following keyboard presses. The up, down, left and right keys.
I want to position everything on the stage using AS3. I have a scenic background image (as a movie clip) and a character (also a movie clip).
So my character is on stage facing to the right and there is some scenery behind.
I want to do the following:
When the left key is pressed, the character faces left and appears to be walking. When the key is released the character stops.
When the right key is pressed, the character faces right and appears to be walking. When the key is released the character stops.
When the up key is pressed, the character jumps up and lands back on the ground.
When the down key is pressed, the character crouches down. When the key is released the character returns to normal.
I have created movie clips of these movements, so walking, crouching down and up, jumping and stood still.
I also have created the background images where the edges join to together.
So in a nut shell hat I am wanting is: Different key presses play different movie clips and move the background moves (loops) in the correct direction giving the illusion the charcter is walking (when actually they don't move at all, just the background does.)
Any suggestions?
Thanks,
Nick
