I have been for a while now making some games for the PSP, i'm testing on a Phat so it should mean the games work on all PSP's with flash enabled, anyway i was going to show and explain a couple of ways to build really small but effective games for PSP. Using AS all the time is going to affect the final product, the frame rate is also a large factor, anywhere lower than 20fps seems to be effecient enough to not cause problems or jumping in an animation.
So basics for a game. We need the following frames!
A start screen
An intro screen (brief the player)
A game over screen
and ofcourse our game (which is best contained entirely in 1 movieclip, however you can make each frame on the _root into a level)
So in essence we have 4 frames "Start, Intro, Game Over, Game".
Some simple stop(); commands and gotoAndStop(); buttons can control the entire game more or less. Simple AS will make the game smaller and run faster.
Now we have a basic idea, we may need health in our game, this is easy to do. We will build a movieclip with a number of frames, each frame being one bar of health. Make a movieclip call it HealthMC and give it HealthMC as an instance name. Open HealthMC and insert a keyframe however many frames in which you'd like the player to live before they die. Now in the first key frame (which should span several frames) put this in the actions
then in the last keyframe put this
(3 should be the frame in which you put game over!)
If you want to make the Health into a visible object the player can see make a new layer in the HealthMC with a red box on it, then copy and paste it to the other layer and change it to green, convert the box to a movieclip symbol. Copy it and put it in the last frame and change the alpha to 0 then put a tween on it, this will create a fading green to red whenever you get hurt.
Whenever you wish to hurt the player the code is simple
This will allow you to make a simple health system for the game.
Here is an example and part of a game i'm working on!
Thanks for reading