Open ArcadEd opened 10 years ago
Did more testing with a new build. Put debug sprite font on screen to show me Touch.Y when On Touch Start and On Touch End fire. On normal play the text shows me the Touch.Y when I touch and release. After the bug happens, it doesn't.
Hello,
Did you manage to fix it? Does it exist a way to reproduce it? Does it happen only with the 2.1 version?
Cheers.
No, the issue remains. It was actually reported in the past and closed, but was never actually fixed.
To reproduce it is pretty easy. Create a button that lauches game center. All touch actions like On Object Touched will still function, but Touch.Y and Touch.X will never change again, it will be locked at the position it was in when you touched the button.
What happens is if you are touching the screen when GameCenter or a fullscreen ad launches, the touch gets stuck. I'll add some code to the sample capx to show it happening.
It happens in 2.0.2 and 2.1.
To work around it, you just need to check that Is In Touch is not active before calling ads or gamecenter.
I am working now on adapting the plugin to the new version of the JS Plugins (3.0.4). I will have a look at it after I finish, because I want to see if the bug persists.
Regards.
Awesome, thanks. I'll be happy to test it out when you get the new build up.
I guess this isn't fixed as someone just reported it on the scirra forums.
I think we fixed this a while ago. Some users provided us a testcase in which, suddenly, the game went mad after using the game center. It was an error caused by a missing "on touch end" event.
Please, let me know if the problem persists.
Regards.
My game is live, so this kind of sucks that I didn't catch it until now but.
My game uses the touch.y expression to get the current y to calculate which way the player is swiping. http://screencast.com/t/zj1kz56OpeNR
Most of the time, this stops working after the game center screen has been shown. This only effects this part of the game, other touch actions seem to not be effected. They are all On Touch Object events.
Is this something that can be fixed? This seems to only happen with game center on ios devices.