playMaker

Author Topic: "Character" Bouncing on Land state  (Read 2717 times)

Neptune_Imaging

  • Playmaker Newbie
  • *
  • Posts: 27
"Character" Bouncing on Land state
« 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.

« Last Edit: August 03, 2013, 06:32:31 PM by Neptune_Imaging »

Neptune_Imaging

  • Playmaker Newbie
  • *
  • Posts: 27
Re: "Character" Bouncing on Land state
« Reply #1 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
« Last Edit: August 03, 2013, 07:22:48 PM by Neptune_Imaging »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: "Character" Bouncing on Land state
« Reply #2 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

Neptune_Imaging

  • Playmaker Newbie
  • *
  • Posts: 27
Re: "Character" Bouncing on Land state
« Reply #3 on: August 06, 2013, 10:29:43 AM »
Hey there... I was looking at that... didn't really explain anything...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: "Character" Bouncing on Land state
« Reply #4 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