debugging - Dynamic Random number glitch -
for project, http://www.swfcabin.com/swf-files/1302575829.swf, number doesn't appear when "scratch" top part off. code being used (yes it's little nooby, i'm new @ this)
{ zoom = random (20) +1; gotoandplay(2); } how can make number appears every time? thanks! -zach
ps: actionscript2
use floor method , multiplication:
math.floor(math.random() * 20) + 1;
Comments
Post a Comment