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.

Dark GDK / how to use this convert 3D to 2D coordinate code...

Author
Message
JoeOh
15
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 27th May 2011 18:20
How do I use this code that has 2 returned values. I am familiar on using a function with a single return value and plugging it into a function. I just haven't come across something like this before.

I would like to plug this return function into the "dbPasteSprite(ID, X, Y)" function. I'm sure the solution is simple, but it's been eluding me to no end.

Thanx-



Home is where my souped-up computer is...
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 27th May 2011 19:47
I have not used 'pair' before so I changed what the function returns(not tested):



You should then be able to do the following:



Your coordinates are then easily accessed from myVec.


JoeOh
15
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 27th May 2011 20:21
It works like a charm now! w00t

~~thanks for the codez

Home is where my souped-up computer is...

Login to post a reply

Server time is: 2024-11-19 10:32:14
Your offset time is: 2024-11-19 10:32:14