playMaker

Author Topic: Animation on Terrain[SOLVED]  (Read 865 times)

livinggames

  • Playmaker Newbie
  • *
  • Posts: 3
Animation on Terrain[SOLVED]
« on: November 26, 2020, 10:14:18 AM »
I have a problem. I'm trying to make a platformer on unity - I use terrain as the surface for my player. But my player is constantly jumping. If I use a cube as a surface, the animation plays correctly. I use three animations so far - Idle, Run, Jump. I recorded a video of my settings in Playmaker:
 
https://drive.google.com/file/d/1BuyMQ04kUD6DCHcbm4Z9VlGvC1Z9g2fo/view?usp=sharing
 
Why is my player on the surface of the terrain (or plane) constantly jumping, but on the surface of the cube everything is fine? What could be the reason?
« Last Edit: November 27, 2020, 06:12:13 AM by djaydino »

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 773
Re: Animation on Terrain
« Reply #1 on: November 26, 2020, 10:51:22 AM »
The problem is perhaps in your character's logic. Look into the conditions that trigger the jump.
If jumps are coded to happen when the capsule slightly moves upwards, maybe you would want to smoothen the bumps?

livinggames

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Animation on Terrain
« Reply #2 on: November 26, 2020, 11:21:57 AM »
Broken Stylus, sorry, unfortunately, I didn't understand what you meant

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
Re: Animation on Terrain
« Reply #3 on: November 26, 2020, 12:28:39 PM »
Looks like problem with character jump and ground detection.
Make sure to watch the FSM while playing. Pause and see each states.

livinggames

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Animation on Terrain
« Reply #4 on: November 27, 2020, 12:48:59 AM »
Yes, the problem was with ground detection. The problem is solved.