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 / GetSpriteHitText Help

Author
Message
Khadin
4
Years of Service
User Offline
Joined: 13th Feb 2015
Location: Nottingham
Posted: 24th Apr 2015 19:33 Edited at: 24th Apr 2015 19:34
Hey all.

Ok, for some reason, when i type:



Nothing happens... I\'ve tried screenToWorldX(getpointerX()), and screenToWorldY(getPointerY()) and still nothing. aLeftSpr is a sprite of a Left Arrow.

If i use text in place of the sprite, and use the command getTextHitTest it works.

The title of the post was suppose to be: getSpriteHitTEST ( not text ) and unsure how to edit a title.

Khadin
Behdadsoft
10
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 24th Apr 2015 19:36 Edited at: 24th Apr 2015 19:48
Hi.

should write your code like this:

Khadin
4
Years of Service
User Offline
Joined: 13th Feb 2015
Location: Nottingham
Posted: 24th Apr 2015 22:21
Yep that works mate, thanks

Khadin
Behdadsoft
10
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 24th Apr 2015 22:30
your welcome.

Login to post a reply

Server time is: 2019-08-17 14:28:25
Your offset time is: 2019-08-17 14:28:25