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 / scrolling rotating problem

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 6th Mar 2013 10:15 Edited at: 6th Mar 2013 10:15
Hi, the editor i have been working on has ran into problems, when i scroll around the pointer coordinates come away from the sprite, when i rotate a sprite the grid system goes out of step so they get placed wrong, same when resizing, i must be missing something but my tablet has broken so i cannot look it up on the pdf i had purchased, anyhow i made a video here showing my problems, not sure if i must convert to world coordinates or what to solve this

Hail to the king, baby!
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 6th Mar 2013 10:41
You should use nothing but world coordinates for the blocks and use SetViewOffset for moving the camera. And use ScreenToWorldX and ScreenToWorldY to convert the mouse coordinates to world coordinates.

At least that's how I would do this


Demo 3 is out now!
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 6th Mar 2013 10:50
yeh,thought as much, thanks for confirming, i guess some major editing is in order.

Hail to the king, baby!

Login to post a reply

Server time is: 2024-11-24 09:34:52
Your offset time is: 2024-11-24 09:34:52