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 / Wrapvalue (DBP)

Author
Message
Kenny77
18
Years of Service
User Offline
Joined: 7th Oct 2006
Location:
Posted: 30th Oct 2006 03:15
I understand the idea of the wrapvalue command, but how does DarkBASIC (Pro) use the information?
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 30th Oct 2006 03:22 Edited at: 30th Oct 2006 03:24
EDIT: My bad, I'l tell you


Here you could do something like this...

Yrotate object 1,Wrapvalue(object angle y()+1)

and that would rotate the object repeatedly


Kenny77
18
Years of Service
User Offline
Joined: 7th Oct 2006
Location:
Posted: 30th Oct 2006 03:28
But what information does DarkBASIC get from wrapvalue?
Nenohum
18
Years of Service
User Offline
Joined: 21st Sep 2006
Location: In a galaxy far, far, away.....
Posted: 30th Oct 2006 04:10
it takes the number so it remains between 0 and 360. so if
When ay# gets to 360 it then goes to 0 instead of 365 and vice versa

some mornings, it just doesn't pay to gnaw through those leather straps

Login to post a reply

Server time is: 2024-11-26 07:23:50
Your offset time is: 2024-11-26 07:23:50