playMaker

Author Topic: How to tilt character based on the direction?  (Read 1068 times)

NN2

  • Playmaker Newbie
  • *
  • Posts: 20
How to tilt character based on the direction?
« on: May 20, 2020, 09:48:14 PM »
Hi I'm trying to achieve 5:05 of this video:
Basically, I want to do the "acceleration tilt" based on the direction the character is moving forward.

I have searched this on the forum but I couldn't find the answer.
Sorry if any of you already answered this.

uilk

  • Playmaker Newbie
  • *
  • Posts: 16
Re: How to tilt character based on the direction?
« Reply #1 on: May 20, 2020, 09:57:26 PM »
You want to send an event when your character either starts or stops moving (either using the get key down and get key up actions or when they reach some threshold using the get speed action) that rotates them forward/backward along the x axis.

NN2

  • Playmaker Newbie
  • *
  • Posts: 20
Re: How to tilt character based on the direction?
« Reply #2 on: May 20, 2020, 10:16:52 PM »
Sorry I don't quite understand what you mean by send an event that will rotate my character. I only want my character to tilt left and right when he rotates to left/right. My character basically moves with a character controller based on axis vectors.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: How to tilt character based on the direction?
« Reply #3 on: September 12, 2020, 12:28:15 PM »
Hi.
Sorry for late reply.

You can get the axis value and when negative Gradually tilt to left (maybe use tween)
and with positive axis start tilting right.