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.

Newcomers DBPro Corner / How do you randomize?

Author
Message
vid1987
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 22nd Feb 2005 08:29
Hello i am having a little trouble randomizing. i know how to dim things into a string and use the rnd command to ask random questions but i tried the same kind of commands with situations such as "Show object 1 : wait 500 : Hide object 1" I want to build a little game where when objects appear you have to press the keys in time to catch the object while it is visible before it disappears but it wont let me store situations in arrays can you even do that or do you have to use another command??

David
mathkid
19
Years of Service
User Offline
Joined: 1st Feb 2005
Location: Central Massachusetts
Posted: 22nd Feb 2005 08:47 Edited at: 22nd Feb 2005 09:51
If I understand correctly, then you want to have an array of flags for which cubes are visible. The array would store 1 when a cube is visible and 0 when it is not. Be sure that when you use the rnd() command, you have already set a random seed using randomize timer() or a similar command.

Login to post a reply

Server time is: 2024-11-11 23:43:57
Your offset time is: 2024-11-11 23:43:57