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 / Need help with drag sprite code

Author
Message
LiamBradbury
13
Years of Service
User Offline
Joined: 28th Apr 2011
Location: Manchester, UK
Posted: 26th Feb 2015 22:59 Edited at: 27th Feb 2015 01:50
Hi, I've made an app using AGK2 which is available on google play store, it's doing quite well, nearly 50,000 installations. A lot of the feedback on the reviews says that they are having problems with the edit photo screen - in the game you take a picture of yourself or a friend and that becomes a virtual pet. I've tested the code on my tablet and it works perfectly but when I just tested it on a phone the image disappears if you touch it twice. I need the user to drag a sprite containing a photo around the screen in order to position it correctly.

This is the code I have, all variables are listed as global.
hold = user holding down with finger, photox and photoy is the size of the photo. px2# and py2# are the old positions of the photo before holding.


It seems that whenever I double tap the screen the sprite disappears

Why does it work on my tablet but not my phone?
Any help would be much appreciated, or if you know a better way of doing it then let me know!

Thanks

UPDATE!
I managed to fix it using this code, knew it would be something easy!



I was using the photo size instead of the sprite size

www.liambradburymusic.com - professional music for your games.

Login to post a reply

Server time is: 2024-05-18 19:12:30
Your offset time is: 2024-05-18 19:12:30