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 / fixspritetoscreen and getspritehit don't work together

Author
Message
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 25th May 2013 23:37 Edited at: 25th May 2013 23:58
I just found out if you fix a sprite to screen then the getspritehit command does not work. this is when you zoom your sprite

Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps. Developed the tiled map engine seen on the showcase. Veteran for the military.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 25th May 2013 23:48
From the documentation on GetSpriteHit:
Quote: "If you are testing a mouse or touch coordinate, remember to convert it to world coordinates using ScreenToWorldX and ScreenToWorldY."


Does that help?

The FixSpriteToScreen command help also says:
Quote: "You should not use physics or collision commands on sprites fixed to the screen as their debug shapes will not line up and they will interfere with physics sprites not fixed to the screen."


Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
3d point in space
14
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 26th May 2013 00:03
oh i think this will work

Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps. Developed the tiled map engine seen on the showcase. Veteran for the military.

Login to post a reply

Server time is: 2024-05-04 14:25:59
Your offset time is: 2024-05-04 14:25:59