Page 1 of 1

how do I Make a character jump properly?

PostPosted: Tue Nov 14, 2006 11:12 pm
by MikeUK
Hi, i have just started to use this program and im a lil stuck.
I am tryin to make a character jump , i can make it jump but u can carry on jumping by pressin the jump button and end up out of view. how do i make the character jump just the once and land on the floor and be able to jump again once the character hits the floor ?? help plz :(

iv done it the same way its done on the caveman tutorial

PostPosted: Tue Nov 14, 2006 11:56 pm
by Game A Gogo
YES, this is my CHANCE OF A LIFE!!
I'll make an Animated tutorial on this (like a film or whatever...), but the only thing is, my English accent sucks X[ :( :cry:

PostPosted: Wed Nov 15, 2006 12:39 am
by MikeUK
ooo good good =)

PostPosted: Wed Nov 15, 2006 5:41 pm
by MikeUK
can any1 tell me now how to do it ? :?

PostPosted: Wed Nov 15, 2006 5:51 pm
by makslane
Create a variable onGround (integer, Actor variable)
In the player actor on Collision with platform:
Code: Select all
onGround = 1;


In the player actor on Collision Finish event with platform:
Code: Select all
onGround = 0;


In the Key Down event disable the repeat option, and put the code:
Code: Select all
if(onGround)
{
   //Put your action here
}

PostPosted: Wed Nov 15, 2006 6:00 pm
by sonicfire
I tried this also but when used in conjunction with physical response, the Collision finish event never occurs then :?

PostPosted: Wed Nov 15, 2006 6:00 pm
by sonicfire
Game A Gogo wrote:YES, this is my CHANCE OF A LIFE!!
I'll make an Animated tutorial on this (like a film or whatever...), but the only thing is, my English accent sucks X[ :( :cry:


So, do you have it done now? :) Would like to see it

PostPosted: Wed Nov 15, 2006 6:49 pm
by makslane
Look the cop actor in the Abuse 2 demo. The actor uses a canJump variable and uses Physical Response action too without problems.


Link:
http://game-editor.com/games/abuse2.zip

PostPosted: Wed Nov 15, 2006 8:32 pm
by MikeUK
oo thanks :)

PostPosted: Wed Nov 15, 2006 9:42 pm
by MikeUK
hmm i did all that and now im stuck on the floor and cant jump
i checked all the events and they all look ok, any1 any idea why i cant jump :?

PostPosted: Wed Nov 15, 2006 10:39 pm
by MikeUK
Nvm done it :)

ty for the help

PostPosted: Wed Nov 15, 2006 11:24 pm
by Game A Gogo
ok, i wont be able to create the video, cuz the sound keeps screwing up!