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 / Can I use a For/Next loop inside a Do/Loop?

Author
Message
Ultimate Newbie
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location:
Posted: 29th Jan 2006 23:00
Here's my code so far. What I want to do initially is keep the object/icon inside the screen which I have left at default size-whatever that is.

sync rate 80 :sync on :autocam off

load image "foliage.bmp",1
load image "icon5.bmp",4
make object sphere 2,-5000
texture object 2,1

make object box 3,5,5,5
color object 3, rgb(255,0,255)
texture object 3,4
do
` mouse move stuff
if mousemovex()=1
move object 3,object angle x(1)+0.1
endif
if mousemovey()=1
move object 3,object angle y(1)-0.1
endif

sync
loop
Fox Dark Master
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Portugal
Posted: 30th Jan 2006 00:23
I didn't get what y want to do :\



KiTsUnE wOrKsHoP
Ultimate Newbie
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location:
Posted: 30th Jan 2006 00:27
I found what I wanted in Code Base. Thanks Waldo. I'll try not to take up forum space without checking the threads next time.
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 30th Jan 2006 11:59
To answer the title of the thread anyway for future reference - yes you can...

...maybe one day I'll finish a project

Login to post a reply

Server time is: 2024-09-24 15:35:22
Your offset time is: 2024-09-24 15:35:22