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.
The author of this post has marked a post as an answer.
Go to answer
// check is a sprite was under the mouse
if GetSpriteHitTest(spr, GetPointerX(), GetPointerY())>0
// Sprite was hit
// check if a text object was hit
if GetTextHitTest(txt, GetPointerX(), GetPointerY())>0
// Text was hit
// Virtual button was hit
Login to post a reply