Search Unity

2.5D Game, move only in 2 axis

Discussion in 'Getting Started' started by alexxjaz, Mar 1, 2019.

  1. alexxjaz

    alexxjaz

    Joined:
    Sep 18, 2018
    Posts:
    45
    First of all, sorry if this post doesnt belong here
    Im trying to make a plataforma Game in a 3D world and with 3Dmodels, but you only can move horizontal and vertical, and with a 2.5D view

    The problem its that if the model of the plarform or something is not flat on the z axis (where you wont move) the character can slide
    Any tips? Thanks
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    You're in the right place.

    But how are you controlling your character? And what do you mean by "slide"? Perhaps a screen shot or two would help explain what you mean.
     
  3. alexxjaz

    alexxjaz

    Joined:
    Sep 18, 2018
    Posts:
    45
    Im prototyping the levels with standard assets, and moving with Ethan just for testing, i Will change it for my controllers.

    With sliding i mean if you only can move in z and y axis if one obstacle is like a sphere you can slide into x axis, and you can move back yo the original position because the controllers only allow you to move in that 2 axis