Hello, I am currently working on a game that needs three lanes. The character will start in the middle lane. I want the character to switch lanes by one step whenever you hit a button (left & right buttons). I already got my character to move left & right when I hit the button and it stops when you release it. The problem is that the character should only move a fixed amount to the left or right but the character moves as long as you are holding the button... I hope you understand my problem, thanks for any help!
Nice,~ i also tried that as long as you hold left/right it will move. ~ IF you only need the Character to move left and right, i would suggest a Swipe Control. so it will only move 1 time to a direction you want. swipe left it will move left to the set X axis. [Check out the controls for Swipe Board in the Game presets.]
1) drop two character action buttons than name them left and right button. Make their function : component action. 2) To the character - ADD Component > Advance moves In advance move: adjust the linear velocity X= custom; and Y=0; then go for time out this works
Here is a template I made a year ago for someone asked the same question https://www.buildbox.com/forum/index.php?threads/possible-to-make-this.8343/#post-43933
Thanks for all the answers! I tried swipe controls before and it was buggy (The character kept sliding in a random direction after swiping once). I tried swipe controls again and now it seems to be working. Thank you!