Joystick Freezes actor movement
raze_struck
Member, PRO Posts: 141
Hello All,
So I implemented a 4 way joystick, and it seems to be working fine, but when I make a sudden movement from right to left, the actor will animate as if he's walking left, but he won't move. Alternatively, If i move the joystick in a semi circle from left to right or vise versa, everything is fine, the actor moves quickly from left to right, but the movement from direct right to left freezes the actor in his position. Any thoughts?
Also i can't seem to get the perfect angles down for the left side. I'm trying to cover a big portion of the left side,
right now its set as angles;
< -120 , >= -180
and;
< 180, >= 120
Comments
Nevermind i fixed the angles :P, just having a serious issue with moving the joystick from sudden right to left
bump
If self.motion.linearvelocity.x < 0 animate walking to the left end if its >0 animate to the right.
Hope this helps
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
I found a solution, thank you though. In my case it would not work, because the actor moving is not animating, the animated actor is being constrained to the non movable actor. Trying to reduce the collision box of the animated actor ;P