00:00
00:00
Newgrounds Background Image Theme

Hooovie just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Two ActionScript questions

808 Views | 3 Replies
New Topic Respond to this Topic

Two ActionScript questions 2002-06-27 17:29:38


1) In a sidescrolling game, what script would you put in to make enemies appear at random, rather than coming at the same time, every time?

2) Is there a way to have buttons, or an input box, that lets people change the speed that something on the screen moves? If there is, what is it?

Thanks to whoever helps me out.

Response to Two ActionScript questions 2002-06-28 07:33:35


http://www.macromedia.com
there's the answer to your question... somewhere

Response to Two ActionScript questions 2002-06-29 00:17:56


At 6/28/02 07:33 AM, Freestyler4ever wrote: http://www.macromedia.com
there's the answer to your question... somewhere

...

Response to Two ActionScript questions 2002-06-29 15:28:59


At 6/27/02 05:29 PM, StrawberryFulp wrote: 1) In a sidescrolling game, what script would you put in to make enemies appear at random, rather than coming at the same time, every time?

onClipEvent(load) {
_y = Math.random()*400;
}

2) Is there a way to have buttons, or an input box, that lets people change the speed that something on the screen moves? If there is, what is it?

It all depends on your code...

Thanks to whoever helps me out.