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 / How do i save change to an x file

Author
Message
Andrik
21
Years of Service
User Offline
Joined: 17th Jul 2003
Location:
Posted: 17th Jul 2003 18:55
hi, i'm very interested in this, at university i'm taking a db course, and the teacher is lazy, he never explained that, and thats our final project, so, let's say, i include an sphere which is an x file, so what i have to do, is just with the mouse rotate it, so, next time y restart the exe, the sphere has to be in the position i left it, any idea what can i do????
Ag3ntSm1th
22
Years of Service
User Offline
Joined: 13th May 2003
Location:
Posted: 18th Jul 2003 02:21
he's right. DBC doesn't incorporate saving of X meshes. you could make your own routine using memblocks and such, but that a whole other can of worms. just save any object variables to a file using the write byte or write string commands (for each variable, to the same file). then read it in the same order you wrote it and assign the object variables as they are read.

"The secret to creativity is knowing how to hide your sources." - Einstein
my DarkBasic creations - http://www.sixurbanninjas.tk

Login to post a reply

Server time is: 2025-05-19 13:55:44
Your offset time is: 2025-05-19 13:55:44