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 / Certain Times

Author
Message
vid1987
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 19th Mar 2005 00:54
Hello i may not be using the right terms for this but is there a certain way you can set up certain times.. ok... say i wanted to randomly alternate between 3 gosubs and the gosubs wait about 1000 for a certain input for a certain amount of time then they alternate to the next gosub but i think i know most of what im doing but im having trouble randomizing the gosubs i know how to randomize variables but i dont really understand how to randomize commands if anybody knows what im talking about plz respond i need this because im making a music game where when you input a certain key at a certain time it will play a note. thx
peace

David
Robot
22
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 19th Mar 2005 02:28
could you do something like

random=rnd(2)

if random=0
gosub label1
endif

if ramdom=1
gosub label2
endif

if random=2
gosub label3
endif

The happenings of tommorow are behind us now
TravisP
22
Years of Service
User Offline
Joined: 30th Jun 2004
Location: Behind you, with a knife!
Posted: 19th Mar 2005 02:58
or


Note: The above I didn't say, your just crazy.

Not a ripoff of The Twilight Zone

Login to post a reply

Server time is: 2026-07-27 05:47:31
Your offset time is: 2026-07-27 05:47:31