Swipe in GS Preview vs Device

sparkaniasparkania Member, PRO Posts: 300
Just a simple question (I hope)

I am currently working on a game which is controlled via various swipes from the user. These swipes create values depending on Press and Release locations which then control the main character... I have all that done.

A problem though, in the GS Preview window, when swiping the screen, if I continue the swipe outside the GS preview edge, the Press value is entered, but the release value is not.

So.. my question is, do Devices (phones / tablets) suffer this issue as well? meaning if I swipe to the edge of a device, the extremity of the device screen will register as my Release location.. right?

Comments

  • sparkaniasparkania Member, PRO Posts: 300
    I guess nobody uses touch screens...
  • sparkaniasparkania Member, PRO Posts: 300
    wow..
  • DeadlySeriousMediaDeadlySeriousMedia ArizonaMember Posts: 838
    edited February 2013
    @sparkania I think it does. That's why instead of 'when touch is released' you should use 'when touch is outside'. This way it will register that the touch is no longer within the actor even if you never release. :)
  • sparkaniasparkania Member, PRO Posts: 300
    Thanks! I saw that but had it in my head that this was more of a Press than a Release. I'll give that a shot!
  • NeoStarNeoStar Member Posts: 25
    Did this work? I think, and I could be wrong, but "when touch is outside" requires a valid touch registered outside of the given actors outside area. So if you swipe off the touch screen it does not register the swipe outside.

    Now if I am wrong then you are good. If not you could always set and invisible container along the outer edge. if the swipe goes into the outer edge container it registers that as the release position instead of the actual release.

    Or you could still use the outside method if the entire screen is the actor then just shrink the actor to be 20px or whatever size works less than the screen size and outside would work.
Sign In or Register to comment.