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 / type of loop

Author
Message
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 7th Jun 2004 03:53
Is it possible for a loop to go on for a certain number of times like if I made a loop for a monster movement and I wanted it to move a random aomunt before stopping could I loop it a random amount of times like
A = rnd(8)
`looping A times
monster moving stuff
update location

A 1 man team
EVIL SIG!
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 7th Jun 2004 03:56
A = rnd(8)
for buffer = 0 to a
next buffer

something like that?

Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 7th Jun 2004 05:09
is it possible for you to add like a code for looping something like maybe just text so I can understand it more?

A 1 man team
EVIL SIG!
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 7th Jun 2004 19:38


Or there are other ways you could do it





can i scream
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 7th Jun 2004 20:07
Why don't you say exactly what you are trying to do? Theres probably a better way of doing it...

Login to post a reply

Server time is: 2024-09-22 12:36:55
Your offset time is: 2024-09-22 12:36:55