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 / [SOLVED] Click on the front sprite

Author
Message
bluemill
6
Years of Service
User Offline
Joined: 5th May 2018
Location:
Posted: 5th May 2018 00:13 Edited at: 5th May 2018 00:59


When one sprite is over another and when the user clicks on the one in front, the function of the two is activated.



How do I just get the click of the sprite that's up front?

The author of this post has marked a post as an answer.

Go to answer

bluemill
6
Years of Service
User Offline
Joined: 5th May 2018
Location:
Posted: 5th May 2018 01:01
Richard_6
7
Years of Service
User Offline
Joined: 3rd Feb 2017
Location:
Posted: 5th May 2018 12:45
This post has been marked by the post author as the answer.
Hello, Bluemill! You can use GetSpriteHit instead of GetSpriteHitTest. Check this thread

Login to post a reply

Server time is: 2024-11-23 00:43:50
Your offset time is: 2024-11-23 00:43:50