dim3 Forum

Full Version: Random Attacks
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Not really sure if this should go under Animator or Scripting, but...
Is there any way to have your character do a different attack every time the same button is pressed? Because I'm going to make a game that mainly includes swordplay, but I don't want it to where every time you press the spacebar he keeps doing the same slash attack.
Use
Code:
utility.random.getInteger(min,max);
to get a random number between min and max.
The rest should be obvious. Smile
Ah, I understand. Thanx Bink! Smile
Reference URL's