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 / SetViewOffset and world coordinates?

Author
Message
Fluorescent
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 1st Aug 2005
Location: Stockholm, Sweden
Posted: 7th Dec 2014 11:37
I'm working on a little thing where I point to a sprite and the sprite is outlined. But when I change the view offset, everything gets, well offset. I use ScreenToWorldX and Y but something isn't taking this in to consideration for some reason.

What am I doing wrong?
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 7th Dec 2014 21:27 Edited at: 7th Dec 2014 21:28
Try this:


If you are setting the View Zoom too you will need to divide the width/height of the box by the zoom factor too.

Login to post a reply

Server time is: 2024-11-25 13:18:54
Your offset time is: 2024-11-25 13:18:54