playMaker

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

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
State Jump[SOLVED]
« on: July 24, 2011, 08:46:53 AM »
Hi all
I am building a first person controller with playmaker but i can not put my person jumping i am try with "set transform" but i can not
any help...
« Last Edit: January 31, 2012, 04:25:27 PM by Sebastiao »

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #1 on: July 25, 2011, 01:58:07 PM »
Please help...

LordShaggy

  • 1.2 Beta
  • Junior Playmaker
  • *
  • Posts: 50
Re: State Jump
« Reply #2 on: July 26, 2011, 02:46:29 PM »
So what kind of jump to do you want to do ?

Are you having an animation issue or just the getting it to move like it's jumping in the first place?


Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #3 on: July 26, 2011, 07:34:16 PM »
So what kind of jump to do you want to do ?

Are you having an animation issue or just the getting it to move like it's jumping in the first place?



Hi I need only a jumping camera very simple, no animation just movement like with translate or something but I can not
Bye

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: State Jump
« Reply #4 on: July 27, 2011, 03:02:16 AM »
Hi,

 It's important that you provide some explanation about how you envision your feature. there are simply an infinite amount of solution for "jumping" :) but likely only a few that will suit you.

for example is the following jump suitable?

user press "jump", the camera translate into the air using a constant translation value for a predefined amount of time. Once it reached the predefined amount of time it falls down again using the same translation constant until it reaches the base height of the camera. Pressing jump while already jumnping has no effect. The jump is relative to the world, that is the camera is translated by the world y axis during the jump.

If that's suitable, I can build a quick example ( for next week, meanwhile try to experiment :) ).

 Bye,

 Jean

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #5 on: July 27, 2011, 09:13:46 AM »
I just need for my first person jump simple like games.
I think is with a set position or something
If any people make a example will be very nice
Thanks Jean


Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #6 on: July 27, 2011, 09:15:00 AM »
I tried with with set position but camera stays in air

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #7 on: August 03, 2011, 04:26:28 PM »
Please give me some help...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: State Jump
« Reply #8 on: August 04, 2011, 02:35:09 AM »
Hi,

 Sorry, I am running being my work. Hopefully I can tackle this during the week and provide an example.

 Bye,

 Jean

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #9 on: August 04, 2011, 09:39:09 AM »
ThankĀ“s for it . Yes if you have time I would greatly appreciate ;)

qholmes

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 509
Re: State Jump
« Reply #10 on: August 04, 2011, 01:01:12 PM »
Well it seems that you are maybe missing some basic skills..

But have you tried the iTween move by? Use the y direction and it will move it up and then have another one that will do the move down.. I looked and there is not a way to do an up and down with a single iTween that i could see.. but it makes me think that i will modify the iTween code to implement a new loop function of loop once so you can Ping Pong a single loop.. I can see that being handy some times.

I did a simple test and it worked just fine here.. I am not using user input though.

Q

Edit:

Are you using a Character Controller on your object?

Q
« Last Edit: August 04, 2011, 01:49:18 PM by qholmes »

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #11 on: August 04, 2011, 05:11:51 PM »
Well it seems that you are maybe missing some basic skills..

But have you tried the iTween move by? Use the y direction and it will move it up and then have another one that will do the move down.. I looked and there is not a way to do an up and down with a single iTween that i could see.. but it makes me think that i will modify the iTween code to implement a new loop function of loop once so you can Ping Pong a single loop.. I can see that being handy some times.

I did a simple test and it worked just fine here.. I am not using user input though.

Q

Edit:

Are you using a Character Controller on your object?

Q
Hi thanks for help I will try
And Yes I am using a Character Controller on my capsule.
Bye

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #12 on: August 04, 2011, 05:59:21 PM »
I have tried but it stays in air
Bye

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: State Jump
« Reply #13 on: August 04, 2011, 06:01:23 PM »
And yes will be good you change the ITween code to loop
Bye

qholmes

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 509
Re: State Jump
« Reply #14 on: August 04, 2011, 09:12:12 PM »
Ok well i have not tried the character controller myself but maybe it will be a diversion tonight.

Did you do two iTweens one for up and the next for down. The second will have to be triggered from the first... So make a separate State with a second iTween in it for the down and a global Transition on it. The in the first iTween send the transition from the finished state.

Does that make any sense?

I will try it later if i have time. working tonight anyway.

Q