The Daily Click ::. Forums ::. General Chat ::. How do I make chatacter jump?
 

Post Reply  Post Oekaki 
 

Posted By Message

MrMohammed



Registered
  10/10/2006
Points
  22
10th October, 2006 at 19:00:07 -

I'm using mmf2 and I figured out how to move left and right using 8 direction function, but I don't know how to make my character jump. Are there any good tutorials on a rpg based game?

 
http://i84.photobucket.com/albums/k31/MrMohammed/cool-sig2.gif

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
10th October, 2006 at 22:55:51 -

To give the character the ability to jump, use the Platform movement instead of 8 directions, or (far better) try using the Platform Movement Object extension.

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

MrMohammed



Registered
  10/10/2006
Points
  22
10th October, 2006 at 23:30:17 -

Thank you, I thought that might be useful. Any way, I was working mostly on a status bar with menus, but now I need to make a ground lol. I made a map using a bunch of pieces put together, but how do I turn it into the floor? My character just falls to the bottom of the screen and that's not very good at all. Soryy, but this is my first time using mmf2, and I want to figure this stuff out before I ever think about purchasing the full version.

Edit: Ok, well I sort have figured that out, but I want my chracter to have his feet sort of on the ground a few milimeters, not exactly on top because I'm using grass on the ground. I set an event saying if collision between character and grass character stops. Dont know if it's right but it;s a start. Also, I don't know how to turn my ladder into an object that can be climbed.

Image Edited by the Author.

 
http://i84.photobucket.com/albums/k31/MrMohammed/cool-sig2.gif

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
11th October, 2006 at 08:08:25 -

DC search for "Custom platform movement" in the articles section.

 
n/a

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
11th October, 2006 at 08:36:04 -

I normally use 8 direction movement for RPG/Zelda-style games. To jump, you do this little workaround:


Give the player a shadow, which always stays on the floor. Then, give this shadow the '8-dir movement' option. Then set the player's X position to the X pos of the shadow. Set his Direction to the Direction of the shadow.

Then set his Y position to:

Y("Shadow")-Alterable Value A("Player")


We use Alterable Value A as the player's jump height.


So basically, it's the shadow that moves, the player simply follows the position of the shadow. When he jumps, say, 5 pixels in the air, we simply put a 5 pixel vertical distance between him and the shadow he's following. As he falls, that distance becomes 4, 3, 2, 1 until he's back down on the shadow again.

Image Edited by the Author.

 
191 / 9999 * 7 + 191 * 7

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
11th October, 2006 at 12:08:05 -

What I would do for the grass is put it on a separate layer from the obstacles that you actually collide with - this way the player will collide with the "real" platforms on the layer behind/in front of any decoration that you put in.

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

MrMohammed



Registered
  10/10/2006
Points
  22
11th October, 2006 at 17:19:33 -

wow, you guys are so smart. thanks for all the help, and I did the jumping using the platform movement. I'll check out that article too.

Image Edited by the Author.

 
http://i84.photobucket.com/albums/k31/MrMohammed/cool-sig2.gif
   

Post Reply



 



Advertisement

Worth A Click