Search Unity

Making A Mario Clone. Jumping On The Pole Animation.

Discussion in '2D' started by ElvinasIV, Apr 14, 2019.

  1. ElvinasIV

    ElvinasIV

    Joined:
    Jun 15, 2013
    Posts:
    2
    Hey, I'm making a Super Mario Bros clone and I'm stuck at the end. I want to do the classic Mario ending, jumping on the pole and not sure how to approach it: http://prntscr.com/nbv041

    I haven't found good sprites for the pole, only these ones http://prntscr.com/nbuzk3
    so the animation is kinda choppy.

    So I wanna ask how should I do this animation ? For the pole I think I will create a script that checks if collided with a player and executes the pole animation ( flag going down ), but what about Mario ? Add a method to PlayerController that checks when collided with pole and sets Mario to "graple" animation, but how to make him go down and then to the castle ? Am I on the right path ?
     
  2. Cornysam

    Cornysam

    Joined:
    Feb 8, 2018
    Posts:
    1,465
    You probably dont need to do an animation besides having him change to a grabbing anim. I would just kinda rig it so when Mario hits the flag, you constrain his X movement on the rigidbody so he just falls straight down. As for the flag (I think it goes up as Mario goes down), you could probably just use a transform.translate and have it move from startingPos to endingPos. Something along those lines may work
     
    Rockaso likes this.