The Daily Click ::. Forums ::. Klik Coding Help ::. custom platform jump
 

Post Reply  Post Oekaki 
 

Posted By Message

Codemonkey

Always Serious

Registered
  06/11/2007
Points
  164

Code MonkeyKlikCast StarVIP MemberAttention GetterWii Owner360 OwnerThe Cake is a LieCardboard BoxHero of TimeI'm a Storm Trooper
I'm on a BoatIt's-a me, Mario!PS3 OwnerSonic SpeedGOTM - SEPTEMBER 2009 - WINNER!Evil klikerPokemon Ball!I am an April Fool
5th December, 2007 at 16:18:29 -

I've made a really good left and right thing (with sliding)! but i cant seem to get the gravity and jumping.

 
You can log off any time you like, but you can't ever leave.

sententia



Registered
  20/09/2005
Points
  162
5th December, 2007 at 17:15:06 -

Err, you probably should have tried searching...

*Upon pressing "jump"
+Bottom detector overlapping backdrop
-Set "Y velocity" to -[number]

*Bottom detector not overlapping platform
+"Y velocity" < [maximum falling speed]
-Add 1 to "Y velocity"

*"Y velocity" < 0
+Top detector overlapping backdrop
-Set "Y velocity" to 0

*"Y velocity" > 0
+Bottom detector overlapping backdrop
-Set "Y velocity" to 0


These next two are optional:

*"Y velocity" < 0
-Change animation sequence to jumping

*"Y velocity" > 0
-Change animation sequence to falling


Image Edited by the Author.

 
n/a

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
5th December, 2007 at 17:21:35 -

There's a heck load of tutorials and examples already on the site dude. Just use the search thing to find what you need. All of these things have been covered over and over with many different ways of doing things. Rather than having people sigh and copy and paste it all here again, go have a look dude

<-

See how you get on there

 
http://www.SilverNova.co.uk


Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
5th December, 2007 at 19:24:24 -

I used to love this method, but I don't often see other people use it:

On pressing (jump)
+PlayerDownDetector is overlapping a backdrop
--Player: Set YIn to 25

Negated(PlayerDownDetector is overlapping a backdrop)
--Start loop 'butts' for (YIn / 4 + 1) loops

Negated(PlayerDownDetector is overlapping a backdrop)
+YIn > -25
--Subtract 1 from YIn

On loop 'butts'
+YIn > 0
+Negated(PlayerUpDetector is overlapping a backdrop)
--Player: Set Y Postition to Y(Player) - 1

On loop 'butts'
+YIn < 0
Negated(PlayerDownDetector is overlapping a backdrop)
--Player: Set Y Postition to Y(Player) + 1

PlayerDownDetector is overlapping a backdrop
--Set YIn to 0

Naturally you can tweak all the values; I just guessed at those ones anyway.

Image Edited by the Author.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
6th December, 2007 at 08:23:59 -

Radix's way is a really good way of doing it. I also use it, since it's completely safe. It's a system that prevents walking through wall rather than pushing him back, which means there can't be any more bugs in that department.

 
Old member (~2004-2007).

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
6th December, 2007 at 09:23:32 -

Whatever you decide to use, make sure it's exactly what you want first before making more frames for your game with that same movement in them!

The worst thing is to make changes to your movements down the road and then have to copy / paste groups of events over tons of frames later.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Codemonkey

Always Serious

Registered
  06/11/2007
Points
  164

Code MonkeyKlikCast StarVIP MemberAttention GetterWii Owner360 OwnerThe Cake is a LieCardboard BoxHero of TimeI'm a Storm Trooper
I'm on a BoatIt's-a me, Mario!PS3 OwnerSonic SpeedGOTM - SEPTEMBER 2009 - WINNER!Evil klikerPokemon Ball!I am an April Fool
6th December, 2007 at 15:39:34 -

thanks! about that "worst thing in the world", that happened to me my last game. oh well, it was still good.

 
You can log off any time you like, but you can't ever leave.

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
6th December, 2007 at 18:25:10 -

That's what global events are for..?

 
http://www.SilverNova.co.uk


nim



Registered
  17/05/2002
Points
  7234
6th December, 2007 at 19:08:56 -

By the way, what's so bad about global events and why does no one seem to use them?

 
//

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
6th December, 2007 at 19:32:08 -

I haven't tried using global events in MMF2, but in previous klik software, "global" often meant "buggy as all shit".

 
n/a
   

Post Reply



 



Advertisement

Worth A Click