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.

AppGameKit Classic Chat / Board Coordinates Backwards

Author
Message
Olde Worlde Illusions
3
Years of Service
User Offline
Joined: 10th Oct 2021
Location:
Posted: 8th Dec 2021 05:22 Edited at: 8th Dec 2021 05:42
I am using this code to generate the board:


The issue I am having is the board's y origin is backwards. That is 0 is at the bottom and 7 is at the top. I tried changing it to:

However it made no difference and the baord was still backwards. I also checked my highlight code but, all it does is take a x and z coordinate and uses that information to get the ID from the object type.



The only other thing I can try is reversing the loop so its height outer, width inner , but it's late, and I am tired. I have attached the source code for reference.

UPDATE
I got objects to spawn on the cursor by changing this line from:

to:


but the issue still persists and the board's z coordinate is still reversed.

Attachments

Login to view attachments
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 8th Dec 2021 08:41 Edited at: 8th Dec 2021 08:46
Bear in mind that the positions are relative to the camera position, so it may look backwards from one angle and correct from another

like, this looks reversed on both x and y


but this one it looks like the y is reversed, its not, as you can see from the bigger object still at 0x0





maybe I am misunderstanding your issue? post some working code and/or a screenshot
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee

Attachments

Login to view attachments
Olde Worlde Illusions
3
Years of Service
User Offline
Joined: 10th Oct 2021
Location:
Posted: 9th Dec 2021 03:52
Here is what I mean...

Notice 0, 0 is on the bottom left.
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 9th Dec 2021 05:04 Edited at: 9th Dec 2021 05:07
Quote: "Notice 0, 0 is on the bottom left."


and see my examples, its the camera position that's throwing you off

here is some camera code that will help you find the correct location to place the camera

add the code to your project, find the right position, take a note of the position, angle, remove the code and set the right values in your camera setup.


Edit, the code will run stand alone if you want to see it working.
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee

Login to post a reply

Server time is: 2024-11-23 09:30:29
Your offset time is: 2024-11-23 09:30:29