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 / Coding multiple loops with confidence

Author
Message
dared
20
Years of Service
User Offline
Joined: 20th Nov 2004
Location:
Posted: 7th May 2006 11:38
Well, i dont use math, it doesnt get highlighted so i do this:

rem first loop


hope it helps the non mathers out there.

site: http://planet.angelfire.com/planet/davidsgames/
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 7th May 2006 12:54
It doesn't even compile under DBPro - and even if it did, what is it supposed to achieve?
dared
20
Years of Service
User Offline
Joined: 20th Nov 2004
Location:
Posted: 7th May 2006 16:01
that IS darkbasic PRO code, have you even created the needed objects and stuff?

site: http://planet.angelfire.com/planet/davidsgames/
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 7th May 2006 17:10
What the...

You posted a small snippet of some code, didnt explain what you want it to achieve, havent posted any sort of question regarding the code (since thats what you do in the newcommer's corner), and expect us to run the code and experiment with it until it works, even when we dont know what its supposed to do.

From the looks of things, all that does is run a continuous loop until object 50 is created, and the only way to achieve object 50 being created is to run into object 35 with object 1, so basically once you touch object 35, object 50 is made, then it deletes object 50, and does it again (checking for collision with object 35).

... What the hell?

DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 7th May 2006 17:16
Quote: "... What the hell?
"


couldnt have said it better myself.

visit my site (unfinished)
www.freewebs.com/dbnewbie
dared
20
Years of Service
User Offline
Joined: 20th Nov 2004
Location:
Posted: 8th May 2006 09:43
The point i was making is that it is possible to multi loop storys without math

site: http://planet.angelfire.com/planet/davidsgames/
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 8th May 2006 10:06
Have you been smoking lightbulbs again???

RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 8th May 2006 23:23
Umm... Ofcourse it's possible to do multiloops without math... why would you need math...

Pincho I think you're getting somewhere ...

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 19th Jun 2006 14:41
Ummm... here's my attempt at understanding you....

1. You could use the EXIT command. That exits the current loop. IT puts you behind the loop sign

2. You could use REPEAT and UNTIL as well as "DO" and "Loop" for your loops. The UNTIL is like a condition. Altogether it means "Repeat doing what's inside this loop Until (whatever the condition is)"

OH, and by the way you may want to add a sync on at the start of that program and a sync before the end of each loop...

I doubt you can draw me/60 by hand, so you REALLY can't draw ME/1, can you?
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 21st Jun 2006 10:37
Ok dared, explain step by step exactly what you are trying to achieve in your game/application and we will give a good answer. At the moment I just can't understand what you are saying.
Sorry

M.I.A is pending
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 21st Jun 2006 13:18
He isn't asking a question, he's telling us how to make a loop with no maths involved.

Login to post a reply

Server time is: 2024-11-26 17:18:15
Your offset time is: 2024-11-26 17:18:15