Forum Topic: Total flash noob, how do I do this?

(118 views • 2 replies)

This topic is 1 page long.

<< < > >>
None

nickbachman

Reply To Post Reply & Quote

Posted at: 6/27/08 03:20 PM

nickbachman FAB LEVEL 01

Sign-Up: 06/09/08

Posts: 38

Alright, I don't know anything really about actionscript or doing anything other than simple animation in flash. I was wondering, I made this imperial probe droid from star wars:

http://www.nickbachman.com/images/hoth.h tml

Right now, it doesn't do anything other than move and make its sound. I want to make it so a dot randomly appears in the landscape every once in a long while, and then the user can click on the dot and it'll pop up a little window saying what the droid has spotted (rebel scout, wampa, etc), and that's it. Any ideas? Maybe it's easy. I really have no clue. I just draw! D:


None

Kirk-Cocaine

Reply To Post Reply & Quote

Posted at: 6/27/08 03:24 PM

Kirk-Cocaine EVIL LEVEL 37

Sign-Up: 08/17/03

Posts: 17,876

AS: Random deals with generating random X/Y positions, while, AS: Intervals deals with the timer aspects.

Both tutorials are for AS 2.

Dear Dickhead, You're A Wanker

BBS Signature

None

Woadraiders

Reply To Post Reply & Quote

Posted at: 6/27/08 03:26 PM

Woadraiders DARK LEVEL 11

Sign-Up: 11/11/07

Posts: 561

Yeah, just randomly attach a movieclip to the stage every few seconds, and inside that movieclip it has a movieclip that when rolled over plays some like "popup" animation that has some dynamic text in it (that you'll set through code, maybe choose a random target from an array).
desc.text = "The droid has spotted a "+targets[Math.floor(Math.round()*target s.length)]+" on the ice";

Mibbygames.com
panterA

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 06:11 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!