playMaker

Author Topic: State Jump[SOLVED]  (Read 15474 times)

qholmes

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 509
Re: State Jump
« Reply #15 on: August 04, 2011, 10:02:19 PM »
So i dove into character controllers.. works pretty cool.. And i found two ways to jump.. I set up a new State with 2 actions in it.. Controller Move and put in a +2 in the Y vector and then a Send event to go back to the main State with a 0.5 sec delay.. Gravity pulls you back to earth.

The other way was with the two iTweens One to send you up and the other to bring you down.. Hmmm maybe gravity would bring you down in this one too.. not sure.

They both worked for me.

Maybe this will get you going. If not Jean is awesome and i am sure she can whip something up for you. But work is always getting in everyones way.

Edit:

So you only have to use iTween up if you want as gravity will pull you down again.. If you dont want to control the curve down.

So Controller Simple Move has gravity built in and works good. It does not support Up and down manual moves just gravity.. So you just jump out of that state and move your controller up with a Controller Move action or an iTween action then back again and gravity will take over.. Cool i can use that in the future. ok back to work for me where i dont need any of these things yet


Q
« Last Edit: August 04, 2011, 11:15:18 PM by qholmes »

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #16 on: August 05, 2011, 11:09:12 AM »
Hi thanks for help I am focus on first way of your second post because I don´t have understand very well your first post and I am too intressed in can control the fall time.But my first person go and go to air don´t stop.
Can you take a capture selection of your jump like how many global transitions have you got?
Bye and thanks for help

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #17 on: August 05, 2011, 11:20:58 AM »
I have this.

qholmes

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 509
Re: State Jump
« Reply #18 on: August 05, 2011, 11:36:24 AM »
Hey i think you have it... Just add a global transition to your Player State and set it to your Event Normal Position.. And it should work perfect!!

Q

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #19 on: August 05, 2011, 04:54:22 PM »
Hey i think you have it... Just add a global transition to your Player State and set it to your Event Normal Position.. And it should work perfect!!

Q

OOOHHH my good it jumps ... it jumps yes ;D ;D !!! Thanks a lot super nice just a question when it jumps Player stop and if I what the player jumps and walk at same time?
Bye thanks a lot a again

giyomu

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 108
    • blog
Re: State Jump
« Reply #20 on: August 05, 2011, 07:30:25 PM »
if you want make walk and jump in same time , you may split into 2 fsm, one will take care the jump, so the one that handle the run or walk will still work too

qholmes

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 509
Re: State Jump
« Reply #21 on: August 05, 2011, 08:51:46 PM »
Exactly..

Glad it is working for you.

Q

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #22 on: August 06, 2011, 10:36:30 AM »
I will try later thanks by now :)
Bye

qholmes

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 509
Re: State Jump
« Reply #23 on: August 06, 2011, 11:36:34 AM »
Yes i expect that you should have separate FSMs for each control that you want to act simultaneously.. they will all run in parallel.

Q

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #24 on: August 06, 2011, 06:29:56 PM »
Thanks I will try
Bye

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #25 on: August 06, 2011, 07:44:14 PM »
Hehe it work very well  :) :)
Thanks guys
Bye

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #26 on: August 06, 2011, 07:52:06 PM »
I am trying make my player duck should I make with Controller Move ?
Bye

qholmes

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 509
Re: State Jump
« Reply #27 on: August 06, 2011, 10:30:51 PM »
Simple move only does x and Z

Controller Move does up and down too.. so even though i dont have much character experience... my test the other day i would use the Controller Move for anything up and down.

So yes.

Q

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3998
  • Official Playmaker Support
    • LinkedIn
Re: State Jump
« Reply #28 on: August 06, 2011, 11:04:59 PM »
Also check out the Character Controller Settings action:
http://hutonggames.com/playmakerforum/index.php?topic=395.0

To duck you'll probably need to change the height of the capsule...

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #29 on: August 07, 2011, 08:50:32 AM »
Thanks :)
I am having troubles with Controller Move.
But with Character Controller Settings it is working but have a problem now because my Camera don´t goes down too. I need Camera goes down too. How can I make it?
Bye