- Home /
Question by
eqb0923 · May 19 at 10:45 AM ·
2d-platformermario
Mario like skid when moving in oppsite direction for 2d platformer
Been trying to figure this out for hours please help heres my movement code
void FixedUpdate()
{
var movement = Input.GetAxisRaw("Horizontal");
transform.position += new Vector3(movement, 0, 0) * Time.deltaTime * movspeed;
anim.SetBool("walking", movement != 0);
}
Comment
Your answer
Follow this Question
Related Questions
Mario-Like 2D platformer (Bill Blaster) 2 Answers
How do I make multiple objects use the same animation at different times? 2 Answers
Keep Trail Renderer trail on Play Mode exit? 0 Answers
,Switching 2D platformer from x.y to z,y 0 Answers
How to prevent friction for character along vertical surfaces? 2 Answers