The Daily Click ::. Forums ::. Klik Coding Help ::. Newbie-question about platformers in MMF
 

Post Reply  Post Oekaki 
 

Posted By Message

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
17th November, 2007 at 21:36:19 -

I'm makin a simple platformer in MMF2 and ive created my player using the default platform-engine and I've made backdrops but the stupid active object doenst seem to be able to stand on these, even though ive tried setting them both as obstacles and as platforms. What might my problem be?


I would be happy for answers // Toxie'

 
n/a

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
17th November, 2007 at 21:56:17 -

Is it possible to make platformers in MMF?

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
17th November, 2007 at 22:04:32 -

When 'Hero' collides with backdrop = Movement > Stop

That event should prevent the player from falling thru the obstacles.

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
18th November, 2007 at 06:31:44 -


Originally Posted by \/\/olf
When 'Hero' collides with backdrop = Movement > Stop

That event should prevent the player from falling thru the obstacles.



Yes, that's true. But it also makes the hero stop when his head touches obstacle from below. This is what im trying to prevent. Btw, thx for answer.

 
n/a

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
18th November, 2007 at 08:17:43 -

Set the backdrop as platform rather than obstacle.

 
n/a

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
18th November, 2007 at 10:42:39 -


Originally Posted by KlikMasta Claus
Set the backdrop as platform rather than obstacle.



Well, I've tried it with both. It does NOT work as it should. It was much simplier in TGF.

 
n/a

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
18th November, 2007 at 12:17:20 -

Having backdrops set as platforms should allow your guy to jump up from below it and stand on them fine, that's weird.

I would definitely suggest that you look into making a custom platform movement. It might be a little hard to get exactly how you want it, but it will pay off in the long run.

 
--

"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!

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
18th November, 2007 at 12:34:35 -

Or use the PMO.

 
Craps, I'm an old man!

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
18th November, 2007 at 14:56:07 -

the problem is with the built in movement. that is with why most people move onto custom movements.

 
.

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
18th November, 2007 at 19:45:43 -

Thank you for your answers, everyone.

EDIT: Ehum.. Another noob-question: How do I use the PMO? How do i get started after choosing the properties for the platformer?

Image Edited by the Author.

 
n/a

~Zigzag~



Registered
  13/03/2007
Points
  292

Game of the Week WinnerSilverNova Member
19th November, 2007 at 01:36:38 -

Image
Direct Link: http://img517.imageshack.us/img517/1453/codeforpmodp5.png

Thats just the basic code, no animation or anything.

 
http://www.SilverNova.co.uk

markno2



Registered
  06/06/2006
Points
  865

Game of the Week WinnerVIP MemberPicture Me This Round 30 Winner!Weekly Picture Me This Round 39 Winner!Kliktober Special Award Tag
19th November, 2007 at 02:15:39 -

Just read the documentation provided ;}

 
Discarded pizza boxes are an indispensable source of cheese.

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
19th November, 2007 at 06:59:36 -

Thanks people, i got it now.

 
n/a

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
21st November, 2007 at 09:01:48 -

Ergh, one more thing...

Why can't I use ladders with the PMO? Is there some special way..?

 
n/a

markno2



Registered
  06/06/2006
Points
  865

Game of the Week WinnerVIP MemberPicture Me This Round 30 Winner!Weekly Picture Me This Round 39 Winner!Kliktober Special Award Tag
21st November, 2007 at 21:46:41 -

From the documentation:

Ladders can be done in many different ways, too. The simplest way is probably to test if the selected object overlaps with the ladder object, and the user is pressing the up key, then set additional Y velocity to -100 or another negative value, also set the maximum Y velocity to 0. Set additional Y velocity to 0 when the user is not pressing the up key, and set the maximum Y velocity to it's default value again. Also do the same when pressing down on a ladder.

 
Discarded pizza boxes are an indispensable source of cheese.
   

Post Reply



 



Advertisement

Worth A Click