playMaker

Author Topic: 2.5D platformer ladder problem  (Read 3119 times)

BioFan

  • Playmaker Newbie
  • *
  • Posts: 8
2.5D platformer ladder problem
« on: November 13, 2014, 07:16:18 AM »
Hi guys, I'm doing a 2.5D platformer game. I'm new to Unity and have done most of the work following cloud03's tutorial.
My character is already able to climb the ladder but there is one problem. My ladder is set up like Megaman's, so the player will look away from the screen as he is going up. Like this

Right now my character will look away if he is going up from one direction and look at the other direction if he is going from the other direction.
I think one of the main reason is the way I animated it. But how do I force my character to always look at one direction as he is climbing up the ladder?
Any suggestions? thanks in advance

cloud03

  • Full Member
  • ***
  • Posts: 249
  • Viva Playmaker!
    • Milkish Game Studios Blog
Re: 2.5D platformer ladder problem
« Reply #1 on: November 13, 2014, 09:48:03 PM »
Are you using different sets of animation for going up and down?

The way I set it, is to only use one animation, and when inside the ladder trigger, rotate the child object (the character object model) so it is facing to the ladder.

BioFan

  • Playmaker Newbie
  • *
  • Posts: 8
Re: 2.5D platformer ladder problem
« Reply #2 on: November 13, 2014, 11:26:32 PM »
Nope, I'm actually still trying to climb up only. :)

So if my character comes from the left, he will animate correctly, but when he comes from the right, he will rotate the other way.

But I think I have it set wrong, cos I animate it rotating. From your explanation, I think the rotation should be done in game.

Maybe I'll just have to wait and see your tutorial again. hahaha
« Last Edit: November 13, 2014, 11:28:39 PM by BioFan »

cloud03

  • Full Member
  • ***
  • Posts: 249
  • Viva Playmaker!
    • Milkish Game Studios Blog
Re: 2.5D platformer ladder problem
« Reply #3 on: November 14, 2014, 01:04:55 AM »
Yup, my climbing animation rotation is the same with the other animation rotation, the rotation are done inside unity...

I'm going to record the tutorial probably later this night around 8 o'clock (GMT +7), so probably tomorrow will already be available on youtube...

BioFan

  • Playmaker Newbie
  • *
  • Posts: 8
Re: 2.5D platformer ladder problem
« Reply #4 on: November 14, 2014, 01:26:43 AM »
Ahh cool, thanks, can't wait to see how you do then.

Seems like my questions are answered by you only in this forum. lol

Anyway thanks for the help again.

cloud03

  • Full Member
  • ***
  • Posts: 249
  • Viva Playmaker!
    • Milkish Game Studios Blog
Re: 2.5D platformer ladder problem
« Reply #5 on: November 14, 2014, 04:09:06 AM »
No problem, reallu glad to help :)