playMaker

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

Zersion

  • Playmaker Newbie
  • *
  • Posts: 4
Player jumping: Add force 2d player jumping
« on: January 12, 2018, 01:00:33 AM »
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: 7616
    • jinxtergames
Re: Player jumping: Add force 2d player jumping
« Reply #1 on: January 12, 2018, 04: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
Re: Player jumping: Add force 2d player jumping
« Reply #2 on: January 12, 2018, 09:48:24 PM »
Thanks for replying.
Here is my FSM

Zersion

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

Zersion

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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Player jumping: Add force 2d player jumping
« Reply #5 on: January 13, 2018, 01:43:58 PM »
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.