Search Unity

3D Object Moving to another object on the x axis

Discussion in 'Scripting' started by Aced_Apple, Jan 25, 2021.

  1. Aced_Apple

    Aced_Apple

    Joined:
    Jan 25, 2021
    Posts:
    10
    I'm kinda new to programming and game development as a whole, I'm making a small game to get some practice, unfortunately I ran into some errors. Its a 3D platformer in the way of a 2D platformer. Like Geometry Dash but 3D. I want my player to move towards the end goal automatically with the only button being jump. I've tried many ways of coding the program. Most of the time it would follow on every axis. But because I want it to move like a 2D game, I need it to move on one axis. Any help would be appreciated, Thanks.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,738