Swipe in GS Preview vs Device
sparkania
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?
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
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.