Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certain touch actions don't work after GameCenter load #43

Open
ArcadEd opened this issue Oct 25, 2014 · 7 comments
Open

Certain touch actions don't work after GameCenter load #43

ArcadEd opened this issue Oct 25, 2014 · 7 comments

Comments

@ArcadEd
Copy link

ArcadEd commented Oct 25, 2014

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.

@ArcadEd
Copy link
Author

ArcadEd commented Oct 25, 2014

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.

@LibelulaV
Copy link
Contributor

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.

@ArcadEd
Copy link
Author

ArcadEd commented Oct 27, 2014

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.

@LibelulaV
Copy link
Contributor

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.

@ArcadEd
Copy link
Author

ArcadEd commented Oct 29, 2014

Awesome, thanks. I'll be happy to test it out when you get the new build up.

@ArcadEd
Copy link
Author

ArcadEd commented Dec 5, 2014

I guess this isn't fixed as someone just reported it on the scirra forums.

@LibelulaV
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants