Kisaru
|
  |
| Joined: 09 Jul 2008 |
| Total Posts: 6378 |
|
|
| 27 Jul 2009 09:52 AM |
| I know how to make it so I can shut the door and start the music when the player enters, but how do I make it so the actual boss uses a random move and attacks my character? Would I also be able to make it so there is a 50% chance the boss will follow that move up with a combo? |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 27 Jul 2009 09:53 AM |
use math.random(num1,num2)
it returns integers (or it's supposed to) |
|
|
| Report Abuse |
|
|
GollyGreg
|
  |
| Joined: 22 May 2008 |
| Total Posts: 21835 |
|
|
| 27 Jul 2009 10:07 AM |
| And each number would represent a random move. |
|
|
| Report Abuse |
|
|
Kisaru
|
  |
| Joined: 09 Jul 2008 |
| Total Posts: 6378 |
|
| |
|