The Daily Click ::. Forums ::. Klik Coding Help ::. Platform Engine Help!
 

Post Reply  Post Oekaki 
 

Posted By Message

Deleted User
23rd August, 2006 at 01:56:44 -

I have a solid platform engine, using fastloop, and it has perfect collisions, and all.
I've found, playing games such as Commando, or Mr. Stumps Dentures, the longer you press the button, the higher you jump.
How does this work?

 

deadeye



Registered
  22/07/2006
Points
  73
23rd August, 2006 at 05:25:06 -

I'm using the Platform Movement extension in my game, and it takes care of that automatically.

But for custom movement, I would venture to guess that you'd reduce the vertical velocity by a lesser amount each cycle if the jump key is being held down.

Say for a normal, non-held jump you'd reduce the jump speed by like 10% or whatever each cycle. But as long as the jump key is held down, reduce it by only 8%. That's how I'd try it, anyway.

 
n/a

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  48487

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
23rd August, 2006 at 10:00:40 -

MSD didn't have variable height jumping

 
n/a

Deleted User
23rd August, 2006 at 22:59:39 -

Didn't it?
Well, great game anyway.
Maybe I'm thinking of that 'Circy' game.

 

Werbad



Registered
  18/09/2002
Points
  235
24th August, 2006 at 11:04:29 -

I made a simple engine
http://rapidshare.de/files/30594486/holdjump.zip.html
Might need some tweaking to get it the way you want it though

Image Edited by the Author.

 
n/a

Deleted User
25th August, 2006 at 01:34:02 -

Thankyou!

 

Deleted User
25th August, 2006 at 01:39:54 -

Werbad, just wondering, but did you actually put jumping code in that, or is it default movement?


 

Deleted User
25th August, 2006 at 01:59:11 -

Uhhh... Also, sorry to bug people, but if its not to hard, could someone explain how to do slopes?

 

Werbad



Registered
  18/09/2002
Points
  235
25th August, 2006 at 02:19:18 -

Do you have to ask that? Didn't you check the event editor? It's a custom jump engine

 
n/a

Deleted User
25th August, 2006 at 07:41:40 -

yeah, I was just suprised that it had so few events, and such tight collisions!

 
   

Post Reply



 



Advertisement

Worth A Click