1 Replies - 883 Views - Last Post: 04 November 2019 - 08:35 AM Rate Topic: -----

#1 theonerm2   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 14-August 17

How to make the player do a sideflip? Unity

Posted 29 October 2019 - 11:46 PM

I'm trying to make my own 3d mario game in unity. In my game I want the controls to be like Mario 64. I'm using an Asset called ELC all in one game kit. I'm modifying the code to add in Mario like jumps and the only one I can't seem to figure out is the sideflip. The way it works is if you're running at full speed and then turn the other way quickly you can press the jump button and do a sideflip.
Is This A Good Question/Topic? 0
  • +

Replies To: How to make the player do a sideflip? Unity

#2 NeoTifa   User is offline

  • NeoTifa Codebreaker, the Scourge of Devtester
  • member icon





Reputation: 4634
  • View blog
  • Posts: 19,417
  • Joined: 24-September 08

Re: How to make the player do a sideflip? Unity

Posted 04 November 2019 - 08:35 AM

I think the running speed has a velocity and acceleration right? So just find a threshold for the values then if it detects a change in direction, do the flip if the button is pressed. That's my guess. I never played Mario64 so idk what you're talking about but yeah.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1