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.

~Zigzag~



Registered
  13/03/2007
Points
  292

Game of the Week WinnerSilverNova Member
22nd November, 2007 at 02:04:57 -

I made a jump pad with that as well.

 
http://www.SilverNova.co.uk

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
22nd November, 2007 at 07:43:21 -

So the ladder must be an active object?

Thanks for answer.

 
n/a

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
23rd November, 2007 at 06:57:22 -

One correction on ZigZag's code, X object is jumping needs to have X object is falling too .

 
Image
http://bfollington.tumblr.com

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
23rd November, 2007 at 08:56:10 -

I've got problems with getting the animations to work.
When I stop, the "hero" keeps the walkanimation. How to.?.

http://imageposter.com/uploads/get/99168 <-- Screenshot

Image Edited by the Author.

 
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
23rd November, 2007 at 09:04:20 -

I'm not sure but I believe that "active is stopped" only works when you're using a default movement. Change the code to something like this:

Negate: User is holding right direction
Negate: User is holding left direction
Object overlapping obstacle

---> Change animation to stopped.

 
Discarded pizza boxes are an indispensable source of cheese.

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
23rd November, 2007 at 11:13:37 -

Thanks, it works fine.

 
n/a

~Zigzag~



Registered
  13/03/2007
Points
  292

Game of the Week WinnerSilverNova Member
23rd November, 2007 at 17:34:52 -

Oops...

 
http://www.SilverNova.co.uk

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
25th November, 2007 at 07:30:24 -

Argh.. is it not possible to make an active objekt an obstacle when using the PMO?

 
n/a

Hempuli

Crazy?

Registered
  09/01/2005
Points
  7968

Game of the Week WinnerGOTM JULY - 2009 - 2ND PLACE!GOTM AUGUST- 2009 - 2ND PLACE!GOTM OCTOBER 2009 - WINNERI am an April FoolGame of the Week Winner - MARCH 2010!-
25th November, 2007 at 14:07:08 -

Yes, set
-Test for obstacle overlap
+(hero) collides with (activeobject)

-> Selected object overlaps as obstacle.

 
No sig for you.

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
25th November, 2007 at 17:48:20 -

Hrm, ok it worked.

Another thing... When i save the game as an application, non of the sound/music is in it.?.

 
n/a

~Zigzag~



Registered
  13/03/2007
Points
  292

Game of the Week WinnerSilverNova Member
25th November, 2007 at 18:10:34 -

Make the music external, that always works better for me.

 
http://www.SilverNova.co.uk

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
25th November, 2007 at 18:17:28 -

1. What does that mean?
2. It seems I can only use "play sample"-function, and not "play music". So I have to loop my wav-musicfiles as samples?

 
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!
26th November, 2007 at 03:34:11 -

1. External means "not internal". It won't be packed in the final mfa or exe, but rather as a seperate file.
2. "Play sample" handles digital music in MMF2, like OGG music. Use "play music" for MIDIs only.
3. Yeah, you should then loop that specific "sample".
4. DO NOT USE WAV. Convert them to OGG or something, it makes the files (and your game's file size) so much smaller and MMF2 supports them natively.

 
Old member (~2004-2007).

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
26th November, 2007 at 10:06:53 -

Well, the music aint midi and I won't ruin it by converting.

But about ogg's, how do I convert my wavs?

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
26th November, 2007 at 10:20:03 -

Using Goldwave. Which has a rather lengthy free trial.

If your music wont play after making it an application you might have forgotten to add sound 'filters' look in properties.

 
.

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
27th November, 2007 at 13:27:32 -

Hrgmm.. Perhaps I should make a new thread for this.. But !

I'm trying to get the level-passwords to work, I've tried both the built-in password option in the menu and to make a "rich edit object", but i can't get it to work. :/ Any ideas?

 
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!
27th November, 2007 at 14:42:10 -

Using a simple edit box or similar, you can compare the content to a string containing a password, and jump to a frame when that happened.

 
Old member (~2004-2007).

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!
27th November, 2007 at 15:49:13 -


Originally Posted by Dr. Jamesa Claus
Is it possible to make platformers in MMF?



Why was this joke overlooked? I'll justify this for you James.

L.M.A.O!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

HAHAHAHAHAHHAHA .. no, that really did make me laugh out loud

 
http://www.SilverNova.co.uk


erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
27th November, 2007 at 21:43:42 -

DaVincer: Yea, I've thought of that but I just can't find the right code for it... =/

EDIT: No, I got it now. Thanks

Image Edited by the Author.

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
28th November, 2007 at 12:54:10 -

Tim ;_;

I was JUST going to post that, but you beat me to it. ;___________;

 
Image

Tell 'em Babs is 'ere...

erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
28th November, 2007 at 19:22:49 -

WAwrrrgh, how does the opacity-thingy work? I want to make a under-water map.

 
n/a

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
28th November, 2007 at 19:46:33 -

If i remember rightly, MMF goes from 0 (opaque) to 128 (Transparent)

or maybe they changed it to 100.. I havent done it for ages.

For semi transparancy, anywhere between 40 (for light coloured objects) and 60 (for darker objects) would probably suffice

 
My signature is never too big!!!

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
29th November, 2007 at 04:05:23 -

Yeah, it's still 0 to 128

 
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!
29th November, 2007 at 04:56:29 -


Originally Posted by -Slínka Claus-
Tim ;_;

I was JUST going to post that, but you beat me to it. ;___________;



I'm a day in teh future

 
http://www.SilverNova.co.uk


AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
29th November, 2007 at 11:37:44 -


Originally Posted by Mr SilverNova

Originally Posted by -Slínka Claus-
Tim ;_;

I was JUST going to post that, but you beat me to it. ;___________;



I'm a day in teh future



Which one? Friday?

 
.

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!
29th November, 2007 at 11:48:27 -

No I just have two wednesdays a week like everyone else

 
http://www.SilverNova.co.uk


erghhhhx



Registered
  15/11/2007
Points
  311

Mushroom
3rd December, 2007 at 20:58:16 -

A true noobie-question:

How do I unlock backdrops that I've, ehh.. locked!?

 
n/a

Deleted User
4th December, 2007 at 03:37:35 -

You have to 'unlock all' in the object menu or something.

 
   

Post Reply



 



Advertisement

Worth A Click