PDA

View Full Version : How to make this little game??


SteeL-SinK
05-04-2001, 03:36 AM
I want to make a small game like this:
http://www.saydesign.com/banners/monkey4.html

I am new to flash. I am not sure what actionscript i have to learn in order to acheive this game. It would be nice if anyone can start me up on this. I really want to make something like the link by June 1st, the Footer Reboot at FK.

Thanx in Advance!

Jesse
05-04-2001, 01:31 PM
See this tutorial:

http://www.actionscripts.org/tutorials/beginner/drag-n-drop/index.shtml

Basically that game checks if the hand is touching the box when it's in it's closed state. The box is animated using Actionscripted movement probably (see the tutorial in the Intermediate section), while the hand is a dragable clip and the close hand frame has a .hitTest() bit of code on it.. if hand.hitTest(box) == True then it plays the winner animation...

not too complicated but learn the basics first.

Cheers

Jesse

SteeL-SinK
05-04-2001, 04:17 PM
"Actionscripted movement"

What tutorial should i look into?

Jesse
05-05-2001, 08:48 AM
The one called "actionscripted movement" ? :)

http://www.actionscripts.org/tutorials/intermediate/actionscripted_movement/index.shtml

Cheers

Jesse

SteeL-SinK
05-06-2001, 06:55 PM
hey! thanx!

i finished the two tutorial u wrote..
Can u give me a lead off on what should i do now..

thanx!

Jesse
05-07-2001, 09:41 AM
Make the box move randomly. Make the hand a draggable movie clip. The first frame of the hand has a button and a stop action. When the button is clicked it plays the hand closing animation. The last frame of the hand closing animation uses the hitTest() element to check if the draggable movie is touching the box, if so, you win, else you go back to frame 1 of the draggable hand...

Cheers

Jesse

SteeL-SinK
05-08-2001, 12:27 AM
okay i will try.

SteeL-SinK
05-08-2001, 01:07 AM
"hitTest() element"

not sure how to do that..help!

Jesse
05-08-2001, 08:29 AM
We don't currently have a tutorial on hitTest so just look it up in the actionscripts reference or dictionary from the Flash Help drop down menu... that should be sufficient.

Basically you give it two objects and it returns True if they are touching

_root.movieClip1.hitTest(_root.movieClip2)

that's the form

Cheers

Jesse