The Daily Click ::. Forums ::. Klik Coding Help ::. Easy one for you all.
 

Post Reply  Post Oekaki 
 

Posted By Message

RedSpades



Registered
  18/01/2007
Points
  19
23rd January, 2007 at 20:25:02 -

Okay, I am warning you all now, I am new to MMF2 and I have to create a game for a class. So if I ever make a thread with a question, be prepared to experience noobiness to the extreme. Anyways, in my game, I have this trampoline that is supposed to bounce my character. My question is how do you make the character bounce once it lands on the trampoline?

Thanks guys!

 
----------

Need the help! xP

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
23rd January, 2007 at 20:35:57 -

Well, you shouldn't use the default platform movement for this. Learn to make a custom engine, then, with the engine, reverse his Y-Vector.

 
n/a

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
23rd January, 2007 at 20:37:24 -

If you're using the standard platform movement, this is actually surprisingly difficult to get right - it doesn't really accommodate a lot of things beyond basic jumping and horizontal movement.

You could set a value in the object to, for example, -10 when the player hits the spring, and add this event:

+ Alterable Value A of Player is below 0
-> Set Y of Player to Y(Player) - Alterable Value A of Player
-> Add 1 to Alterable Value A of Player

This is a bit of a shaky way to do things, though. I don't know if you want to get into writing fully event-driven custom platform movements for a small beginner's project, but there's a tutorial on the Clickteam page - http://www.clickteam.com/eng/learning_resources.php

Actually, now I come to think of it, you could be using the Platform Movement Object instead, which makes things a lot easier in many ways. How are you moving the player normally?

 
http://www.davidn.co.nr - Games, music, living in America

RedSpades



Registered
  18/01/2007
Points
  19
23rd January, 2007 at 20:41:14 -

My character moves just like a 2D platform (left to right, jump up, crouch down, etc.)
And I already set the type into Platform for the character.

 
----------

Need the help! xP

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
23rd January, 2007 at 20:48:11 -

So you're using the built in platform movement.

Don't. Turn it off so it is a plain active object.

Make a 'custom engine'.
What i mean by that is use the event editor to move your character around. It takes some time but it's quite easy really.

 
.

RedSpades



Registered
  18/01/2007
Points
  19
23rd January, 2007 at 20:52:02 -

Okay, so I have to turn it off by changing Platform to Static?

And how do I start making a custom engine? Like where do I need to go to get started making one?

 
----------

Need the help! xP

RedSpades



Registered
  18/01/2007
Points
  19
23rd January, 2007 at 21:20:59 -

Lol I see it is too much to explain.
Don't worry, I'll get some help from friends at school. They seem to know more about this stuff and they MIGHT know how to do it.

Thanks for everyone's help!

 
----------

Need the help! xP

skatekid



Registered
  04/01/2003
Points
  142
24th January, 2007 at 08:03:23 -

Sorry, but I really doubt that the people at your school know as much as all of the brillian people here Though they might be able to help you better, since you can work with them in person.

 
Sticks and stones can break your bones,
but words can get you shot.

PeterD



Registered
  24/09/2006
Points
  136
24th January, 2007 at 08:48:27 -

I am not sure but what about the platform extension with the bonus pack

 
up coming games from PeterD software:

http://www.create-games.com/preview.asp?id=2818

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
24th January, 2007 at 09:21:16 -

That's probably the best option - it's quick and easy (once you get past the insane backdrop collision event it needs) and much better than the standard platform movement.

 
http://www.davidn.co.nr - Games, music, living in America

RedSpades



Registered
  18/01/2007
Points
  19
24th January, 2007 at 15:14:28 -

::I am not sure but what about the platform extension with the bonus pack

Cool, so how do I get this bonus pack? Is there a place here or at Click's website that contains that bonus pack?

::Sorry, but I really doubt that the people at your school know as much as all of the brillian people here Though they might be able to help you better, since you can work with them in person.

You were right. lol, my friends and even the most knowledgeable kid in our class doesn't even know how to do it.

 
----------

Need the help! xP

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
24th January, 2007 at 15:27:46 -

It takes lots of time and effort to get a playable custom platform movement. The platform movement extension is probably your best option. It's relatively bug-free, and very easy to use.

 
n/a

RedSpades



Registered
  18/01/2007
Points
  19
24th January, 2007 at 15:32:01 -

Alright then. I'll stick with the default platform engine and maybe in my future games, I'll learn more about making custom engines, etc.

Thanks for all your help, guys! Really appreciated it. =]

 
----------

Need the help! xP
   

Post Reply



 



Advertisement

Worth A Click