The Daily Click ::. Forums ::. Klik Coding Help ::. Strange problem with my frame in MMF1.5. Stuff doesn't do what it should, possible memory issue?
 

Post Reply  Post Oekaki 
 

Posted By Message

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
17th September, 2008 at 00:34:50 -


Originally Posted by Pixelthief
you can use the file object to transplant .TTF font files, can't you? I just use generic fonts and throw them in the gameplay folder, so that the 1% of people who don't have it installed, can do so manually, but 99% won't be diserviced.



Hey, that's a good way to do it

 
--

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

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
17th September, 2008 at 00:47:54 -

Okay, I figured out what was wrong and how to fix it, but I have no idea why this is an error. Listen to this:

When I make my games I usually have a lot of objects off of the main frame area, right? Well after nothing was working with H2 today I thought about it some more. Why would only the damage events be affected while everything else was okay? I went to the group that handled collision with spikes and tried taking out event conditions one at a time. I took out the event that had the "invincibility field" for when you get hit and are immune... And the hero not only took damage he completely died when he hit the spikes. Eureka! Now I knew who the culprit was, but what was happening?

I checked to see if this field was getting destroyed somewhere in the code by accident (which would nullify the event check with the field). Well, it wasn't being destoyed anywhere. Hmmmm.. Then I remembered a REAL OLD and annoying problem before I had when I first started MMF with a string text that wouldn't display when it should have. The problem was that because it was off of the main frame MMF didin't recognize it for some weird reason. So I looked at my invincibility field object's position. It was about -50 pixels north of the top of the frame, along with a lot of other objects and stuff. When I moved it down to dead center of the frame and ran the application again, it worked exactly right. Everything that could damage him now did, like it had in other frames. Holy shit, what a crazy bug that is!!

So here's the lesson I learned today: When everything looks like it should work, try moving any objects you might have stored on the outside of the frame INSIDE the frame itself (just keep it invisible if it's not supposed to be seen). It appears like MMF1.5 at least sometimes ignores objects outside of the frame at random. My God I hope this can help somebody in the future and save them days of headaches.

Thanks for your suggestions everybody, I have some level building to do!

Image Edited by the Author.

 
--

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

-MacAdaM-

Megaman Fosho

Registered
  12/02/2008
Points
  560
17th September, 2008 at 01:09:01 -



Good job Del Duio!

 
Your just jealous that you're not as awesome as me.
(And my megaman avatar )

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
17th September, 2008 at 01:32:51 -

Ha! I had this problem several times when I made the E.P.I.C COMMANDOS demo the other week! My frame wasn't big though, but it happened many times with explosions and bullet's and stuff. It usually happened more often when the object was supposed to be destroyed after a set interval like explosions. Odd, very odd.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image
   

Post Reply



 



Advertisement

Worth A Click