Be a Supporter!
PhilDenger
PhilDenger
  • Member since: Apr. 8, 2011
  • Offline.
Forum Stats
Member
Level 18
Gamer
Random Rotate 2012-12-13 17:31:21 Reply

Does anyone know how to make a symbol get random angle every time you click on it?
Using AS2 (yeah I know I should be using AS3 but I like more the AS2).

Emrox
Emrox
  • Member since: Aug. 23, 2008
  • Offline.
Forum Stats
Supporter
Level 16
Animator
Response to Random Rotate 2012-12-13 18:39:08 Reply

At 12/13/12 05:31 PM, PhilDenger wrote: Does anyone know how to make a symbol get random angle every time you click on it?
Using AS2 (yeah I know I should be using AS3 but I like more the AS2).

Put this code on any movieclip or button:

on(release){
this._rotation=random(360)+1;
}


BBS Signature
PhilDenger
PhilDenger
  • Member since: Apr. 8, 2011
  • Offline.
Forum Stats
Member
Level 18
Gamer
Response to Random Rotate 2012-12-13 19:30:42 Reply

Put this code on any movieclip or button:

on(release){
this._rotation=random(360)+1;
}

Thanks, it was really useful.