k for a long time ive been tryin to make powerups and now i finally got it workin except when i assign the powerup’s x coordinate to the math.random function it goes all over the stage how do i get it to only randomize once so it just chooses a random x coordinate and stays at that one i also need to use this for choosin wut powerup to come down like if the random number is from 1-25 for this powerup ect. can sum1 help me?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Using the Math.random function
|
0 | 75 | June 28, 2005 | |
Math.random()problem
|
0 | 121 | October 5, 2004 | |
Math.random()problem
|
0 | 34 | October 5, 2004 | |
Random appearance of object
|
0 | 92 | November 5, 2010 | |
Help with functions and random direction
|
0 | 66 | August 9, 2005 |