Posted By
|
Message
|
sententia
Registered 20/09/2005
Points 162
|
29th September, 2005 at 15:32:53 -
I know i should know how to do this...but i cant seem to get it right...
I tried "If animation jumping is playing, upon pressing the up arrow: set y position to y of active object - 20" and that didnt come close to working, can someone tell me how?
n/a
|
Joe.H Evil Faker
Registered 19/08/2002
Points 3305
|
29th September, 2005 at 15:54:51 -
Animation Jumping is playing
+ Upon pressing "Up arrow"
+ Flag 0 is off
=Set alterable value A of character to 10 (Can change this if you want)
+ Set flag 0 on
Alterable value A > 0
=Set Y character to Y("Character") - Alterable Value A("Character")
+ Subtract 1 from Alterable value A
[negate] Animation jumping is playing
= Set Flag 0 off
or something like that
My signature is never too big!!!
|
sententia
Registered 20/09/2005
Points 162
|
29th September, 2005 at 16:48:11 -
that just made him jump really high...
n/a
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
29th September, 2005 at 18:22:55 -
That made him jump high because it is a normal platform movement combined with a custom jump, so it's like combining two jump strengths.
Try delaying the custom jump by adding in a timer or something aswell:
Upon pressing "Up Arrow"
= Set alterable value B to 20
Animation Jumping is playing
+ Alterable Value B is lower or equal to 0
+ Flag 0 is off
=Set alterable value A of character to 10 (Can change this if you want)
+ Set flag 0 on
Alterable value A > 0
=Set Y character to Y("Character") - Alterable Value A("Character")
+ Subtract 1 from Alterable value A
Alterable value B > 0
+ Subtract 1 from Alterable value B
[negate] Animation jumping is playing
= Set Flag 0 off
I think that should work, but there could be the problem of ALT B being 0 when you first leave the ground, in which case it would do nothing . Just make sure the event:
Upon pressing "Up Arrow"
= Set alterable value B to 20
Is up the top somewhere.
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
|
sententia
Registered 20/09/2005
Points 162
|
29th September, 2005 at 19:52:13 -
for some reason now hes only jumping normal (not double) and I tried changing button 1 back to shift and that combined the 2 jumps like before...
n/a
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
30th September, 2005 at 03:20:50 -
Try changing both our 'ups' to 'shifts'.
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
|
Klikmaster Master of all things Klik
Registered 08/07/2002
Points 2599
|
30th September, 2005 at 16:34:22 -
It all depends on how your current custom movement works, and we don't know.
n/a
|
sententia
Registered 20/09/2005
Points 162
|
30th September, 2005 at 16:44:26 -
eh nvm i couldnt get the jump to work...i just made it a variable jump instead
n/a
|
Pixelthief Dedicated klik scientist
Registered 02/01/2002
Points 3419
|
30th September, 2005 at 17:11:02 -
It's alot easier if you base your movement engine on vertical/horizontal velocities/vectors, that way all you need to do for a double jump is say something like:
Down Velocity > Up Velocity, Upon Pressing Shift Key, xx flag is off:
Set Up Velocity to 50, Set Down Velocity to 0, set flag on.
Then refresh the flag later.
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456
|
kjarom
Registered 08/06/2004
Points 805
|
30th September, 2005 at 23:40:38 -
^
True. I've yet to see someone make good use of it...it really woulda helped me out in Super Smash Brothers Classic, tho...
You now rockin wit a pro
|
|
|