Control Issue
eemachala
Member Posts: 21
Hello Again... I been making my game and first thing i did while back was obviously implement control of player ... so i went with this compass gui with buttons in each of 8 directions. the char is a sprite that moves/idles/attacks/jumps/dies in 8 directions north west east south and NE SE NW SW. all this animations are set to each movement button. The best way to give control over player to look good was to have an attributes track what was last button pressed to face right direction, attack right direction so on and it all works great... but realizing now, using it on iphone the compass with 8 buttons for control is too much and hard to use. I need to switch to a joystick or tap to move... But i dont know how to incorporate my setup from what i see on joystick demo... In demo i see it uses the x and y from joystick to adjust the angle direction of movement.... I just have 8 set directions that have 8 groups of animations sets with conditionals to them playing ... How can i Have the joystick demo with animation play a different animation depending on the angle direction ... Like having a different animation play when char is moving 0 angle 90 180 270 for forward back left right, and inbetween those angles play my ne se nw sw? Cause if i just put in a one direction running animations in joystick demo replacing its animation dose not look good rotating the animation like that . animation should switch after certain angle is exceeded to make smooth movement transistion ... just dont know how to proceed.
Any help on my project be Much appreciated... Im completely lost on how to keep the great animation gameplay but upgrade to a much more user friendly form of inputting control. Im open to tap to move to if that could work but dont see any demos. Joystick demo is mighty complex with the long equations for xy from joystick to scene
Any help on my project be Much appreciated... Im completely lost on how to keep the great animation gameplay but upgrade to a much more user friendly form of inputting control. Im open to tap to move to if that could work but dont see any demos. Joystick demo is mighty complex with the long equations for xy from joystick to scene
Comments
thx any way