playMaker

Author Topic: 2D Platformer control glitches  (Read 1206 times)

ansi

  • Playmaker Newbie
  • *
  • Posts: 2
2D Platformer control glitches
« on: July 03, 2023, 03:16:26 PM »
Hi:) -- I've been using Playmaker on and off for a while now and started trying out making a 2D sidescroller, which is a new thing for me in Unity Playmaker. I followed the tutorial on your official Playmaker youtube channel and a few things didn't work out perfectly lol -- the youtube video in question is THIS one

1. When I do a jump, if I press either left or right while falling the player character will sort of float in air, but still fall but at a slower speed (so creating a floating effect in the air etc). All I want is the character to fall at normal speed while I'm moving around in the air. I'm not sure what I'm missing but maybe the details I have given are enough to help

2. When I go left or right everythings fine movement wise on the ground, but if I try to jump while holding down either the left or right key than the player character does not jump.

Other than those two things, everything else is fine. I followed the instructions step by step from the youtube tutorial, so if anybody wants a reference as to what I have setup in my FSM’s than it's a 1:1 of that tutorial. I have no other addons/assets installed. I was using Unity 2021 (LTS) and thought perhaps too old a version of Unity that was the problem so I upgraded to Unity 2022 (LTS) and everything behaved exactly the same (and still worked lol)

Thankyou for any help anyone could give. Playmaker is an awesome tool might I add. I have been silent on the forums but have gotten alot of use out of this place over the years. Thankyou.

Also a minor piece of information. That I am not a programmer really, just a dabbling game-dev/creative.

ansi

  • Playmaker Newbie
  • *
  • Posts: 2
Re: 2D Platformer control glitches
« Reply #1 on: July 03, 2023, 05:19:09 PM »
It's probably kind of cheap of me to rely on using a youtube video as reference for what I'm talking about. Sorry about all that. if it isn't too annoying than that's great :D Sorry :)

What's nice is the video has timestamps to warp around quickly. I'm still quite new to setting up a character for 2D platforming.. I guess I'm not sure where to start with my explanation of the problems finer details in text.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: 2D Platformer control glitches
« Reply #2 on: July 04, 2023, 08:42:12 AM »
Hi.
Can you show your move fsm where you do the Set Velocity.

also try playing around with the Rigidbody2D component :
Mass/Linear Drag/Angular Drag/Gravity Scale.

in my game 'Dark Light' change the gravity scale while in air so that initial its not falling to fast but the longer he falls the faster he will fall (until a certain cap that i have set)

Also the jump I actually use velocity but that becomes more complex and for most games force should be fine

colpolstudios

  • Sr. Member
  • ****
  • Posts: 365
Re: 2D Platformer control glitches
« Reply #3 on: September 09, 2023, 08:06:27 PM »
I recommend this Unity platform tutorial that covers one aspect but look for the playlist of this tutorial as it should help.

« Last Edit: September 09, 2023, 08:10:30 PM by colpolstudios »