PDA

View Full Version : [Flash] Terrible Flash game tutorial (not really a game..)



nets
22-02-2006, 11:15 PM
I wrote this in about 15 minutes, so there is probably loads of mistakes.

Open up Flash and create a new document, then go to Document Properties (CTRL + J). I've made the following modifications to my document:
http://i1.tinypic.com/oau9g3.gif

Once in flash create a new symbol (ctrl + 8), choose button and name it target.
Draw a circle target with the width and height of 30.0 PX.
http://i1.tinypic.com/oau9hy.gif

Go back to scene 1 and drag the button "target" from the libary (Ctrl+L).
Select the button once and click actions.
Paste in this A/S:

on(press){
target._x = random ('270'); // Places randomly
target._y = random ('270'); // Places randomly
points++; // Increases points
}

Now select frame one, and again choose actions (if it's not already up).
Paste this A/S in:

points='0'; // Creates variable
target._x = random ('270'); // Places randomly
target._y = random ('270'); // Places randomly

You now have all the needed action script. Select the target and open up properties (Ctrl + F3).
Under instance name type in "Target".
http://i1.tinypic.com/oau9m9.gif

Now create a new layer, in this layer draw a text box in the corner.
Before clicking off of the text box open up properties and set the text to dynamic text, and the var to points.
http://i1.tinypic.com/oau9nt.gif

You should now be able to play this "game" (if you can call it that). It's not really exciting, but this tutorial may help a beginner with A/S and Flash.
http://i1.tinypic.com/oau9sj.gif

Dan Williamson
22-02-2006, 11:31 PM
Hey,

Very nice *stares blankly... Flash noob... I need to learn...*

- Dan

Luckyrare
22-02-2006, 11:38 PM
ha ha I tryed it, I am very poor.

I got the ball/counter to move but the counter didnt work, thats just my pro skills at fash :$

dani342us
23-02-2006, 12:55 AM
what flash?

nets
24-02-2006, 07:19 PM
what flash?
That's Flash MX 2004, I don't have the latest one.

Iggy
24-02-2006, 08:01 PM
i wish i cud learn to write codes fairly quickly, like memorise them

Kymux
30-09-2006, 01:00 PM
I'm BETA testing flash 9 and it doesn't work in it xD

scubadiva
30-09-2006, 07:04 PM
This question probably sounds noobish but...

Is Flash installed on PC from start, or do you have to download/buy it?

Matt.
30-09-2006, 08:49 PM
This question probably sounds noobish but...

Is Flash installed on PC from start, or do you have to download/buy it?

I don't think it is installed on pcs. You can download a 30 day trail from
http://www.adobe.com/downloads/
If you scroll down it will say flash 8 then just click try :).

Stitch
01-10-2006, 09:40 AM
I made one =]

http://www.freewebs.com/rfcminimoose/LocoRoco%20Click.html

i added to it =] When you click the background you lose a point =]

Want to hide these adverts? Register an account for free!