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 / random flickering (to different places on the screen) when dragging sprite on Ipad

Author
Message
lmr2013
11
Years of Service
User Offline
Joined: 15th Jul 2013
Location:
Posted: 16th Mar 2015 00:47
hi all, i was wondering if you could help me (again ).

i have some code where you tap and hold on a tile and move it around the screen with your finger (generally based on the jigsaw example in hands on basic book).

everything has worked fine until recently. Now when i tap and hold on the tile, it sometimes flickers randomly to other parts of the screen as if im touching them as well (but im not). it then returns to under my finger.

this is all very random and only happens now and again - but it's started happening more often now. And it's only seems to happen on my Ipad tests (i've tested it on windows and on Android, and it dont flicker to different places)

when i release the tile (the user lifts their finger off the screen) i do turn on the physics - as i want the tile to push other tiles under it out the way. but when they are pressing / moving the tile the physics is switched off.

other than that, my code is the similar to that used in the book, and has worked fine before. im stumped to why it's started doing it.

thanks for any advice in advance.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Mar 2015 08:16
Have you tried on a different iPad, to make sure it's not a fault with that one device?

Quidquid latine dictum sit, altum sonatur
lmr2013
11
Years of Service
User Offline
Joined: 15th Jul 2013
Location:
Posted: 16th Mar 2015 22:46
Thanks Batvink will give another Ipad a whirl. Hope my Ipad 3 isnt on its way out already.?

It's very all random and has only started recently.

I've checked the sprite x & y, and they register the sprite is indeed appearing in different 'random' places (for a split second), and then returns to where it should be - however my finger is perfectly still on the screen. It's very strange.

lmr2013
11
Years of Service
User Offline
Joined: 15th Jul 2013
Location:
Posted: 5th Apr 2015 11:35
Hi, just an update on this

I bought one of them touch screen all-in-one pc yesterday (bank holidays kill me, i always spending cash on stuff i dont really need - but i have to have!), found moving a sprite with my finger did a similar thing to the ipad. When holding my finger on the screen the sprites jump position slightly then returns, even when my finger is perfectly still the sprite flickers to different positions below your finger. On the touch screen pc the flicker / movement is not as much as on my ipad (which sometimes flicks to the other side of the screen and back) - on the pc the flicker is very slight, but still enough to be off putting.

As its now happened on two different devices, there is only one conclusion - it must be a problem with my fingers.!

so i come up with some emergency code late last night. It may not be the best code in the world - it was late, but it seems to have stabilised the movement / stopped the flickering happening (on the touch screen pc anyway - cant test on ipad at moment as my IOS player has stopped working)

i need to retain the mouse functions as i test my game on other non-touch screen pc's. but on the touch screen i can now use mouse or finger.

i've popped the code below in case anyone else has the same issue.

Login to post a reply

Server time is: 2024-11-25 20:27:39
Your offset time is: 2024-11-25 20:27:39