playMaker

Author Topic: Player jumping: Add force 2d player jumping  (Read 487 times)

Zersion

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Player jumping: Add force 2d player jumping
« on: January 11, 2018, 11:00:33 PM »
Hello everyone.

I am using add force 2d for one of my characters to jump. But whenever I press the button, the player technically teleported to the middle of the air, instead of gliding to a higher y position smoothly. I have done several experiments with force in add force 2d, mass and gravity in rigidbody 2d, and I found out that no matter what they are the character still only teleports instead of "jumping". Is this just a glitch? Or I should be able to fix this by adjusting some settings?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3189
    • View Profile
    • jinxtergames
Re: Player jumping: Add force 2d player jumping
« Reply #1 on: January 12, 2018, 02:05:03 AM »
Hi,
You have probably some wrong settings.
Can you show your fsms/states/actions (images/or video)

You can also maybe check this tutorial to get you stated :
http://hutonggames.com/playmakerforum/index.php?topic=5671.0

There are also many tutorials on the User Tutorial Wiki page.

Zersion

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Player jumping: Add force 2d player jumping
« Reply #2 on: January 12, 2018, 07:48:24 PM »
Thanks for replying.
Here is my FSM

Zersion

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Player jumping: Add force 2d player jumping
« Reply #3 on: January 12, 2018, 07:50:24 PM »
And here is my rigid body 2d settings.

Zersion

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Player jumping: Add force 2d player jumping
« Reply #4 on: January 12, 2018, 07:51:53 PM »
Physics 2d settings

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3189
    • View Profile
    • jinxtergames
Re: Player jumping: Add force 2d player jumping
« Reply #5 on: January 13, 2018, 11:43:58 AM »
Hi.
On rigidbody set 'Gravity scale to 1
and on the 'Add Force' action, set the y value to about 200.

Then adjust slowly the value to your needs.