japanese 2021-09-03 14:36
when i touched screen left and right reversed, it stopped moving. why? and i want fixed it. please tell me how to.
(sorry for my bad English :( )
moechofe 2021-09-03 21:02
IF SX<=0 THEN SX=0
IF SX>=144 THEN SX=144
japanese 2021-09-03 22:55 (Edited)
no. please try to touch left side screen a certain time, then touch right side quickly. the character was stopped moving.
i want to fix it.
Arkia 2021-09-04 02:08
The short answer is you can't.
The longer answer is that this only happens on the mobile version and it happens due to how LowResNX handles the touch screen. Touch screens on smart phones are multi-touch, that is you can touch multiple points on the screen and the phone will create a list of all of them. But LowResNX only works as a single touch device. It can only respond to one point being touched on the screen.
What I suspect is happening is that when you change from left to right there is a moment where you are touching both sides of the screen. In this moment one of those sides is registered as the first point (Touch.1) and the other side is registered as the second (Touch.2). The problem is when you release Touch.1 the other point is still considered Touch.2 and LowResNX only sees Touch.1. Since Touch.1 is now released that means it sees no touch input so the character stops moving, and won't move again until a new touch input takes the place of Touch.1.
Unfortunately LowResNX doesn't provide a way for programs to access the entire list of touch inputs so there isn't anything a program can do to fix this.
japanese 2021-09-04 02:29
ok, i know.
thank you both!