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.

DarkBASIC Discussion / Using the repeat->until loop?

Author
Message
Zeus
17
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 26th Jun 2009 02:54
How am I suppose to go about using the repeat->until loop on my weapons codes? I was thinking of using something like this,



For some reason, that didn't work at all, it wouldn't move the player in the least. How do I approach the repeat->until loop?


Thanks!
Zeus
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 26th Jun 2009 03:47
Notice that nothing is changing in your repeat until loop. So if it doesn't work the first time, it never will. You would want the newx# declaration (newx#=mousex() ) to be inside, so that the results can change.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose

Login to post a reply

Server time is: 2024-05-20 11:16:43
Your offset time is: 2024-05-20 11:16:43