Turn Either Left Or Right And Go

Discussion in 'Gameplay' started by Eran, Dec 25, 2019.

  1. Eran

    Eran Boxer

    Joined:
    Nov 14, 2019
    Messages:
    3
    Likes Received:
    0
    Hey guys!
    I am trying to get my object to turn left or right randomly and go its direction after collapse an obstacle but I could not make it in two distinct ways and wonder what are wrong.
    First way: state machine; collapses
    Second way: without state machine; strangely it makes in 4 different movements instead of 2. Here:
    1. turns right and goes on
    2. turns left and goes on
    3. turns right and goes a little and turns left and goes on
    4. turns left and goes a little and turns right and goes on

    What am i missing?
     

    Attached Files:

Share This Page