Joystick issue
eemachala
Member Posts: 21
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
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