Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Baconhead
17
Years of Service
User Offline
Joined: 22nd Nov 2008
Location:
Posted: 5th Nov 2010 18:22
I want to spawn giant rocks from above so the player can dodge them.My question is how would i make randomly fall
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 5th Nov 2010 18:45
Hi,


Make all of the rocks at the beginning of your game, and then use this to position them:



And use this to move the rocks:



TheComet

The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 5th Nov 2010 18:48
Well, if you have for example 20 rocks, then you could make your program randomly pick a value between 0 to 19, and make the randomly chosen number be the number of the rock that needs to fall down?

Cheers

Slayer rules!!! Yeaaah, man!
Baconhead
17
Years of Service
User Offline
Joined: 22nd Nov 2008
Location:
Posted: 6th Nov 2010 04:47
thanks
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 6th Nov 2010 06:35
Use the "spawn rock above player randomly" command, duh!

But seriosly slayer's and thecomits soulutions look like the best way to go

Login to post a reply

Server time is: 2026-07-26 05:03:49
Your offset time is: 2026-07-26 05:03:49