Skip to main content
Known Participant
September 9, 2009
Question

ActionScript2 for Random Falling Objects, etc

  • September 9, 2009
  • 1 reply
  • 1505 views

Working on creating a simple game with some disadvantaged kids and curious if someone could help with the following.

We have a game scenerio where the character goes across the screen trying reach a safe haven and in the process encounteres falling objects.

We need help with making 5 objects (all movie clips) appear randomly on the stage (from any direction) while the character is in transit. If the character is hit it must restart, if the character is hit 3 times the game is over. When the character reaches the safe haven, the game goes to level 2.

Can anyone help with simple tutorials in resolving these issues simply with AS2. We have looked around the web and found some hints but nothing that answers these questions in simplified ways.

Thanks in advance

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
September 9, 2009

and you're not likely to find exactly what you want.  you'll either need to learn some actionscript of have someone else code this for you.

Known Participant
September 9, 2009

Any recommendations on where to start?

kglad
Community Expert
Community Expert
September 9, 2009

you could start with the tween class.  learn how to tween your character across the stage using the tween class.  then learn how to tween a falling object using the tween class.  then check the movieclip onEnterFrame loop and the movieclip hitTest() method to check for falling object vs character collisions.