3 Lane System, Switch Lane With Left & Right Buttons

Discussion in 'How Can I...?' started by sir_freddy, Feb 25, 2018.

  1. sir_freddy

    sir_freddy Boxer

    Joined:
    Apr 24, 2017
    Messages:
    39
    Likes Received:
    10
    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!

    upload_2018-2-25_23-58-16.png
     
  2. wesam_badr

    wesam_badr Miniboss Boxer

    Joined:
    Oct 10, 2015
    Messages:
    1,065
    Likes Received:
    479
    Did you use the swip control
     
  3. Chibiske

    Chibiske Boxer

    Joined:
    Feb 14, 2018
    Messages:
    19
    Likes Received:
    4
    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.] ;)
     
  4. Jonathan Benson

    Jonathan Benson Boxer

    Joined:
    Sep 14, 2017
    Messages:
    66
    Likes Received:
    33
    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:
    upload_2018-2-26_16-54-28.png
    adjust the linear velocity X= custom; and Y=0;
    then go for time out this works :):):)
     
  5. wesam_badr

    wesam_badr Miniboss Boxer

    Joined:
    Oct 10, 2015
    Messages:
    1,065
    Likes Received:
    479
    Chibiske likes this.
  6. Chibiske

    Chibiske Boxer

    Joined:
    Feb 14, 2018
    Messages:
    19
    Likes Received:
    4
  7. sir_freddy

    sir_freddy Boxer

    Joined:
    Apr 24, 2017
    Messages:
    39
    Likes Received:
    10
    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!
     

Share This Page