Need help! Problems when touch moves too fast
RocketBrain
Member, PRO Posts: 269
I'm having the actor follow the touch with constrain since it seems to work better than move or accelerate.
theres actually two issues i'm having.
The first is if i move the touch too fast the actor stops, i'm guessing the constrain just cant keep up. but i cant get it to work.
the second issue is that you can simply touch anywhere on the screen and the actor jumps to that position...because of the way my game works....thats a problem (cheating)
theres actually two issues i'm having.
The first is if i move the touch too fast the actor stops, i'm guessing the constrain just cant keep up. but i cant get it to work.
the second issue is that you can simply touch anywhere on the screen and the actor jumps to that position...because of the way my game works....thats a problem (cheating)
Comments
however the second one still a problem
its touch position, since its on ios devices and cant detect mouse position
or am i missing something?
one rule, when actor overlaps another actor then change scene
second rule, position.x interpolate touch.x
but simply touching the actor when interpolate is used activates the first rule. its really weird.
touch pressed
mouse position inside
constrain position.x = touch.x
constrain position.y = touch.y
havent tested it on the device yet but it works in the gamesalad preview. guess we'll see