flash cs6 - is there anyway that i can move to some frame in actionscript based on a random number from a dice? -
here's thing, new actionscript , developing a game in flash. game snakes , ladders. have problems regards how move player avatar boxes of game board. here's did. made 100 frames, , each frame position of avatar. (for example, frame 2 shows avatar in box 2, etc).only thing how make frame move depending on random number given dice.?
for example if in frame 2, , dice gave random number of 5, how frame 7? playing frames 3 - 6 , stopping @ frame 7?
to move specified frame, invoke gotoandstop() frame number parameter. of course, can calculated, , can refer movieclip's current frame via currentframe property.
Comments
Post a Comment