How to make a secondary jump when reaching max hight of first jump ?

Hi
I would like to enable my character to be able to perform a secondary jump but that only when the character reaches nearly
the maximum hight of the first jump before the gravity force pulls the character down again.
Any idea how to calculate that?
I would like to enable my character to be able to perform a secondary jump but that only when the character reaches nearly
the maximum hight of the first jump before the gravity force pulls the character down again.
Any idea how to calculate that?
Comments
make an attribute actor jump pos(x and y) int
when actor jumps, change attribute actorjumppos to actor's x and y
when actor's y-35 is larger then actorjumpposx, then ...
you can change the number you want
Calvin
if jumping is true AND motion.velocity.y = 0
jumping would be true if it's not touching the ground. In which case you have to make a ground actor as well.
http://forums.gamesalad.com/discussion/38132/gs-tool-box-a-free-mega-template-ready-now