02-10-2014 10:33 PM - edited 02-10-2014 10:55 PM
I hate to sound like the **bleep** in the room but I just worked up an arcade style game but whenever you touch the BlackBerry Z10 screen, the game goes half speed. If you move your finger constantly, the game stops playing completely. Releasing your finger makes the game continue as usual.
I've tried both:
but neither solves the problem. I have other apps that have MouseEvent LIsteners on the root without any problem at all but for some reason this app behaves the way I"ve described.
I started with MOUSE_DOWN and MOUSE_UP so that the avatar holds a state while the player touches the screen and then changes when the player releases. I thought the DOWN and UP listeners were the problem but changing to CLICK didn't help either, except my finger not being on the screen helps the gameplay not glitch with the slightest movement of my finger.
Also, TOUCH_TAP doesn't help using MultitouchInput.
02-14-2014 10:28 AM
It is possible to get 60 FPS in AIR. Do you have any other event listeners in your app for interaction? I'm curious where the CPU is getting the most demand from.
The Click should only be fired when you remove your finger from the screen, not while you have it held down.
Does your app use bitmaps? If you are caching bitmaps, know that they get loaded into the gpu ever frame while the finger is down.