Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Neptune_Imaging on August 03, 2013, 06:22:06 PM

Title: "Character" Bouncing on Land state
Post by: Neptune_Imaging on August 03, 2013, 06:22:06 PM
Hey guys... i have a question involving the use of gravity for jumping and landing. I am setting up a prototype character control and camera system which is similar to games like Street Fighter, where the edge of the screen will stop player movement. At the moment, the jump state executes correctly, but the landing state doesn't happen (which I just want it to use a gravity vector and return to the ground).

So I moved the states for gravity to the jump state and while the character jumps, and comes back to the ground, the capsules starts bouncing erratically. Is there a way to set it up so that the character will come back to the ground from the start point (mainly looking for the ground)?

Also, is there a way that I can set up the camera to stop the player at the edge of the screen when they move too far from the opposite player (will probably have the system looks for two objects to compare the distance to and it will zoom back a little too). As well as rotate up a little when the players jump?... Thanks a bunch guys.

Title: Re: "Character" Bouncing on Land state
Post by: Neptune_Imaging on August 03, 2013, 06:58:11 PM
I also have another issue with triggers. If I keep hitting the key for the player to move back, the player will eventually slip through the collider... is there another method to avoid that...?

EDIT: I am not using a character controller
Title: Re: "Character" Bouncing on Land state
Post by: jeanfabre on August 06, 2013, 05:26:36 AM
Hi,

 for your screen limits, simply have colliders and your character will bounce off them. You can see an implementation in the sample below.

https://hutonggames.fogbugz.com/default.asp?W890

it also features a jump system. Have a look, this likely has all the answers.

bye,

 Jean
Title: Re: "Character" Bouncing on Land state
Post by: Neptune_Imaging on August 06, 2013, 10:29:43 AM
Hey there... I was looking at that... didn't really explain anything...
Title: Re: "Character" Bouncing on Land state
Post by: jeanfabre on August 08, 2013, 03:21:50 AM
Hi,

 what exactly would you like me to explain better? also have you looked at the wiki help on them games?

https://hutonggames.fogbugz.com/default.asp?W890

https://hutonggames.fogbugz.com/default.asp?W892

bye,

 Jean