Joystick issue

eemachalaeemachala Member Posts: 21
edited November -1 in Working with GS (Mac)
So ive got joystick all setup, what a pain that was angle to vector and magnitude messed with me... I then came into concern with the fact that after letting go of controls my chars pops back facing right instead of the direction he was facing... since i have facing run and idles in all directions. I wrote rules for game.angle > 70 and game.angle < 120 . along with a attribute to integer for gamedirecton. Ive done with for all 8 idle positions with different angles an its works now. with 0-7 for game direction to take its ques from. Next i used the game.angle attribute in the direction of projectile fire and this also works while moving ... but not after i let go of the controls.... fires just right....

Wondering how did anyone overcome this maybe im doing it all wrong from running and idling facing last direction traveled in... How would you make projectile fire in last direction joystick was held in?

very important for my mechanics since death and other animations will take ques off this.

Thanks

Comments

  • eemachalaeemachala Member Posts: 21
    Think i may have this not useing Boolean stickgrabbed
  • eemachalaeemachala Member Posts: 21
    Okay figured out my issue its from codemonkey tutorial of joystick guess i cant find it....when i touch my fire button or any part of game other than joystick My character runs in Place.... you can see this on joystick tutorial click on screen or little robot guy he walks in place.... how Can i stop this nothing should happen when touch screen unless its joystick or fire button for projectiles
  • eemachalaeemachala Member Posts: 21
    OMG please ignore my post i feel like the slow designer... wrote the answer above... replaced mouse press with stick grabbed and solved everything
Sign In or Register to comment.