The Daily Click ::. Forums ::. Klik Coding Help ::. Gravity bug in MMF2's built-in platform movement?
 

Post Reply  Post Oekaki 
 

Posted By Message

Strife

Administrator
Der Dairy Crick

Registered
  21/11/2002
Points
  2305

VIP MemberGOTW AWARD! -Astro Dude - part 1 GOTM JULY - 2009 - 3RD PLACE!It's-a me, Mario!Has Donated, Thank You!I donated an open source project
23rd December, 2009 at 19:57:14 -

I finally received my copy of MM2, and it's every bit as awesome as I expected. I've spent most of the day importing one of my games into it from MMF 1.5, but there is a particular issue that I can't seem to figure out.

Basically, in my game, there is a type of enemy that rolls along the ground like a barrel. I'm making it move horizontally through manual means, and for its gravity, I gave it the built-in platform movement. In MMF 1.5, the gravity worked perfectly this way, but in MMF2, all of my barrel enemies seem to float downwards very slowly (1 pixel per frame) when they're not sitting on a platform. What gives? D:

It's almost as if MMF2 is telling ALL barrel enemies to stop whenever the "Collides with background" condition is met by just one of them. How do I fix this? I really would like to stick with the built-in platform movement for the gravity, if possible.

 

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
23rd December, 2009 at 20:30:21 -

I'm sorry, but I don't know. I wouldn't usually send such a pointless reply, but thanks for posting this, I never though of using the built in movement to handle gravity for stuff.

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
23rd December, 2009 at 20:33:35 -

Gravity settings the same?

 

  		
  		

Strife

Administrator
Der Dairy Crick

Registered
  21/11/2002
Points
  2305

VIP MemberGOTW AWARD! -Astro Dude - part 1 GOTM JULY - 2009 - 3RD PLACE!It's-a me, Mario!Has Donated, Thank You!I donated an open source project
23rd December, 2009 at 21:19:16 -

Indeed it is. At first I thought MMF2 might be toying around with the gravity of the object, but after forcing it to always have a gravity of 50, it doesn't change anything.

If only I know how MMF2 handled the built-in platform movement differently... because it worked just fine in 1.5.

 

CakeSpear



Registered
  28/01/2004
Points
  112
24th December, 2009 at 06:05:19 -

I just created 4 objects with platform movement and an obstacle backdrop. I tried to do
-collides with backdrop-> stop
-overlapping backdrop-> stop
turn off collition with box + the above

in none of the cases where any of the object hovering slowly downwards.
Did you open your 1.5 application directly as a MMF2? maybe there is a problem with the conversion there
Are there anything else in your applications event editor that affects that objects/ enemies movement in any way?
Try setting 'inactivate if to far from playfield to: No'

 
n/a

Strife

Administrator
Der Dairy Crick

Registered
  21/11/2002
Points
  2305

VIP MemberGOTW AWARD! -Astro Dude - part 1 GOTM JULY - 2009 - 3RD PLACE!It's-a me, Mario!Has Donated, Thank You!I donated an open source project
24th December, 2009 at 15:45:07 -

I'm afraid that didn't fix the issue, no.

Since i'm already using the Move Safely 2 object in my game, though, I just changed the barrel enemy's movement to static and added some vertical gravity while using MS2 to make sure it stays on the ground. I was probably better off doing that in the first place, to be honest.

 

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
25th December, 2009 at 18:39:04 -


Originally Posted by Spaceman Strife
I finally received my copy of MM2, and it's every bit as awesome as I expected. I've spent most of the day importing one of my games into it from MMF 1.5, but there is a particular issue that I can't seem to figure out.

Basically, in my game, there is a type of enemy that rolls along the ground like a barrel. I'm making it move horizontally through manual means, and for its gravity, I gave it the built-in platform movement. In MMF 1.5, the gravity worked perfectly this way, but in MMF2, all of my barrel enemies seem to float downwards very slowly (1 pixel per frame) when they're not sitting on a platform. What gives? D:

It's almost as if MMF2 is telling ALL barrel enemies to stop whenever the "Collides with background" condition is met by just one of them. How do I fix this? I really would like to stick with the built-in platform movement for the gravity, if possible.



All I know is that when I updated my game to MMF2 from MMF1.5 a whole lot of things didn't work right anymore. It seriously took months to fix them all. In hindsight, MMF2 is >>>>>> MMF1.5 and even with the delays it was still worth it. Sorry that's not helpful, but at least you know you're not alone with this!

 
--

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

Post Reply



 



Advertisement

Worth A Click