Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 97529

Re: Help for action script game.

$
0
0

If you want to have things happen with random numeric values then you need to make use of the Math.random() method.  For instance, let's say you want the timer delay to be some random value that it is at least some minimum value but no more than some maximum value.  The code that would be...

 

var delay:Number = minimumDelay + Math.random()*(maximumDelay - minimumDelay);


Viewing all articles
Browse latest Browse all 97529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>