Playmaker Forum

Playmaker Help & Tips => Playmaker Help => Topic started by: Zersion on January 11, 2018, 11:00:33 PM

Title: Player jumping: Add force 2d player jumping
Post by: Zersion 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?
Title: Re: Player jumping: Add force 2d player jumping
Post by: djaydino 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 (https://hutonggames.fogbugz.com/default.asp?W548) page.
Title: Re: Player jumping: Add force 2d player jumping
Post by: Zersion on January 12, 2018, 07:48:24 PM
Thanks for replying.
Here is my FSM
Title: Re: Player jumping: Add force 2d player jumping
Post by: Zersion on January 12, 2018, 07:50:24 PM
And here is my rigid body 2d settings.
Title: Re: Player jumping: Add force 2d player jumping
Post by: Zersion on January 12, 2018, 07:51:53 PM
Physics 2d settings
Title: Re: Player jumping: Add force 2d player jumping
Post by: djaydino 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.