Jamesus
08-23-2003, 07:30 PM
Hey, im new to this forum...
I went to http://www.actionscript.org/tutorials/beginner/games_in_flash/index.shtml
And im trying to learn how to make the basic game. Yet when i test it, all it does is flashes, and doesn't move at all.
Just to make helping me (if you will) easier, im @ this part
Test your movie and press the arrow keys on your keyboard. What's happening there is we have a function (moveStuff) that says "if the left arrow key is pressed, move the object that is calling this function 5 pixels to the left" and likewise for the other 3 arrow keys. We then tell our 2 movieclips (affectionately known as box_mc and ball_mc) to call this function every frame. It's important to understand that even though our timeline only has 1 frame, the Flash player is playing that frame 31 times per second. In fact, even if we had a stop action in that frame, the enterFrame event would still occur 31 times per second.
Now, im not sure how to add Instance, so that might be why.
I'm running Flash MX, and if anyone wouldn't mind, taking me threw this. If you have the time, of course :)....
thanks Everyone
Jamesus
I went to http://www.actionscript.org/tutorials/beginner/games_in_flash/index.shtml
And im trying to learn how to make the basic game. Yet when i test it, all it does is flashes, and doesn't move at all.
Just to make helping me (if you will) easier, im @ this part
Test your movie and press the arrow keys on your keyboard. What's happening there is we have a function (moveStuff) that says "if the left arrow key is pressed, move the object that is calling this function 5 pixels to the left" and likewise for the other 3 arrow keys. We then tell our 2 movieclips (affectionately known as box_mc and ball_mc) to call this function every frame. It's important to understand that even though our timeline only has 1 frame, the Flash player is playing that frame 31 times per second. In fact, even if we had a stop action in that frame, the enterFrame event would still occur 31 times per second.
Now, im not sure how to add Instance, so that might be why.
I'm running Flash MX, and if anyone wouldn't mind, taking me threw this. If you have the time, of course :)....
thanks Everyone
Jamesus