PDA

View Full Version : Flash Game help!


sushikid
06-25-2008, 01:04 PM
Hi peeps! I am creating a flash game but i dont know where to start actually. Basically its a whack the mole game where you have "moles" popping out in a 3x3 grid and you have to use either your NumPad/Mouse/Misc Keys to hit them. Any hints? Any help is appreciate, thanks :D

tango88
06-30-2008, 08:07 AM
You need to break your project into smaller chunks and ask help with those when you get stuck:


1 create a graphic of a hole. Add some frames to show the animation of the mole popping out. Make sure you stop(); the animation before the mole shows up. This should be saved as a movie clip.

2 Place 9 instances on the screen

3 Create a graphic and animation of a hammer bashing down

4 Create a game loop using onEnterFrame

5 Use a randomiser to choose which hole the mole will appear and then play(); this clip

6 Use a keyListener to get the keystrokes when the user presses a key and position the hammer according to this.

7 Use a logical statement to determine if the mole is out when the hammer comes down. if true, play an animation of a dazed mole and increase the score (score++;)

Post your progress and ask for more help when you get stuck.