The Daily Click ::. Forums ::. Klik Coding Help ::. Putting object in random spots
 

Post Reply  Post Oekaki 
 

Posted By Message

Coop



Registered
  15/08/2004
Points
  347
29th August, 2004 at 21:19:48 -

I want to have an object move to a random spot between 2 points on the Y axis, so that they are created at random heights.

 
...

Joshtek

Administrator
The Archivist

Registered
  02/01/2002
Points
  3729

Game of the Week WinnerHas Donated, Thank You!Mr BallPicture Me This Round 50 Winner!
29th August, 2004 at 22:04:36 -

Object: Position: Set Y Position: Random(200)+100

 
:: Joshtek ::


Oreos? GO! OREOS!

Coop



Registered
  15/08/2004
Points
  347
30th August, 2004 at 20:32:50 -

Whats the (200)+100 mean? arent they the coordinates? what if i want to set the coordinates to the Y value of of 2 objects?

 
...

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
31st August, 2004 at 02:12:27 -

Random(200)+100 means a number between 0 and 199 will be generated, plus 100. So the Y position will be set somewhere between 100 and 299.

 
n/a

Coop



Registered
  15/08/2004
Points
  347
31st August, 2004 at 18:48:45 -

Okay thanks

 
...
   

Post Reply



 



Advertisement

Worth A Click