Forum rules - please read before posting.

Vertical input moves player on Y instead of Z

Hi Chris,

Is there a way the for vertical input to move the player on Y instead of Z? 
It's about a side-scrolling game with a fixed z axis and I want the character to float (something like the swimming gameplay on Inside). 

Comments

  • The provided movement controller isn't intended for platformer/arcade mechanics - such behaviour would have to be added on with a separate script.

    There are two ways you could do it:

    1) Remove the Vertical input (or map it to some empty key) and then add a separate script that moves the player vertically with a new Input key mapped to what you were previously mapping to Vertical.  This would handle the vertical movement, while AC would handle the horizontal.  It's the simpler option but may not give the best results, since you're combining two controllers.

    2) Rely on a totally custom controller for your player's movement.  This would be more difficult, but would give you precise control over your character's motion since it would all be done through your own script and not by AC.  See this tutorial on how to connect a separate character controller with AC, and this page for a list of pre-written integrations.
  • Great, thanks Chris!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.