PT
Developer Forums
Register
Login
Code Snippets
->
Random
<
1
>
R
Rennekon
Joined:
7th Oct 2003
Location:
Posted:
22nd Dec 2003 2:24
I'm making a breakout game and I want random powerups to fall when a block is broken. Is there some code to that will make a random event?
A
andrew11
Joined:
23rd Feb 2003
Location:
United States
Posted:
22nd Dec 2003 2:37
Use the rnd() command like this: rnd(value)
It will make a random number from 0 to that value. Be sure to use randomize timet() at the start of your program to resead the randomizer.
P
Powersoft
Joined:
1st Aug 2003
Location:
United Kingdom
Posted:
22nd Dec 2003 16:48
just a question
HOW COME THIS ESCAPED THE EYES OF THE MOD'S WITH IT BEING A QUESTION?
just wondered!
J
John H
Joined:
14th Oct 2002
Location:
Burlington, VT
Posted:
22nd Dec 2003 17:20
Didnt see it at first.
CODE SNIPPETS ONLY.
Locked.
RPGamer