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 Professional Discussion / 2D tile editor problem.... not positioning correctly

Author
Message
Ace of Springs
14
Years of Service
User Offline
Joined: 10th Jan 2012
Location: Cambodia
Posted: 11th Jan 2012 08:47
Easiest way to explain is with pictures


2D TILE EDITOR



3D WORLD IT IS SUPPOSED TO CREATE


See how it is positioning it substantially different in the 3d world?

2D EDITOR SAVE FUNCTION



3D WORLD LOAD FUNCTION



I just can't seem to figure out why it is not loading up correctly in 3d. Any suggestions would be greatly appreciated. Thank you.
Max P
16
Years of Service
User Offline
Joined: 23rd Jan 2010
Location:
Posted: 11th Jan 2012 10:55
I think this will work:


Ace of Springs
14
Years of Service
User Offline
Joined: 10th Jan 2012
Location: Cambodia
Posted: 11th Jan 2012 17:05
Quote: "I think this will work:"


No, that math does not work either. I am trying to get the point of (5000,0,5000) to be my rough center for 3d portion. So that will not work either.
Ace of Springs
14
Years of Service
User Offline
Joined: 10th Jan 2012
Location: Cambodia
Posted: 11th Jan 2012 20:53
Ok, so I finally fixed my own problem. Still not sure what was wrong with the first code, but I managed to just rewrite the entire function in a different way. the 2d editor save code was the issue though. This new one works perfect.

2D EDITOR SAVE CODE

Login to post a reply

Server time is: 2026-07-09 20:55:34
Your offset time is: 2026-07-09 20:55:34