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 / GetSpriteHit problem

Author
Message
pinete
13
Years of Service
User Offline
Joined: 28th Jul 2011
Location:
Posted: 26th Dec 2014 20:59
Hi guys,
I've a problem with Getspritehit.
It seems to work perfectly in windows but when I make an APK for my Galaxy 4, the app seems to ignore when I touch on a building to show a kind of popup. this is the piece of code:



I'm doing something wrong?
I've been messing around but I've not achieve any kind of results.
Help will be more than appreciated.
Thanks!
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 26th Dec 2014 21:26 Edited at: 26th Dec 2014 21:30
Hi pinete.

this code work on android and windows.



at first you should Create a Sprite that GetSprite Hit can work.



and no need check below line:



also your sprite hit may great that 500 and you should check it like this:

pinete
13
Years of Service
User Offline
Joined: 28th Jul 2011
Location:
Posted: 27th Dec 2014 00:43
it works now!
Thanks a lot Behdadsoft! much appreciated!! thanks so much!
best!
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 27th Dec 2014 05:17
your welcome.

Login to post a reply

Server time is: 2024-11-25 14:33:42
Your offset time is: 2024-11-25 14:33:42