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.

Newcomers AppGameKit Corner / Percentage/Get sprite hit test

Author
Message
AdamGM
4
Years of Service
User Offline
Joined: 13th Jun 2015
Location:
Posted: 14th Jun 2015 16:07
Hi all,

if we\\\'re using percentage mode and aspect ratio in our code, will the x and y coordinates in getspritehittest also be in that?

I have text created and set at a position.
I created a sprite and put it at the same position.
I then tried to use getspritehittest and an if loop to do something if that spot was clicked, but I can\\\'t get it to work....
AdamGM
4
Years of Service
User Offline
Joined: 13th Jun 2015
Location:
Posted: 15th Jun 2015 00:30
Looks like I got it working. Ignore this one!
David Gervais
Retired Moderator
13
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 15th Jun 2015 04:00
Could you let us know how you solved your problem? It might help others that run into a similar problem.

Cheers!

Login to post a reply

Server time is: 2019-07-20 14:35:33
Your offset time is: 2019-07-20 14:35:33