Question by
Y07 · Jul 19, 2017 at 01:17 PM ·
transformplayer movement
How to jump between -1 ,0 ,1 on x axis, using A and D keys?
I am trying to move the player on x axis -1 ,0 ,1 using A and D Keys but failing to do so , i tried with bool values to swtich the positon of x axis ,when moving from -1 to 0 using D Key got some dizzy effects . I think the sensitivity and gravity of keys causing the bool values to switch fast.Any solution , i need the movement effect of subway surf, that exactly land on the above axis values.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612130633im_/https://answers.unity.com/themes/thub/images/avi.jpg)