The Daily Click ::. Forums ::. Klik Coding Help ::. Enemies keep disappearing...
 

Post Reply  Post Oekaki 
 

Posted By Message

deadeye



Registered
  22/07/2006
Points
  73
23rd August, 2006 at 05:19:41 -

I'm making a platform game. I originally coded the engine so that all of the solid platforms and walls were active objects. Everything worked fine, but it was really slow. I found out that MMF can't really handle a lot of actives on the screen at once, so I redid everything so that all of the solid obstacles are now backdrops.

But now my enemies are dissapearing when they're off the screen. It only happens when they're walking on a solid backdrop. I think they're just falling right through the backdrop, but it's hard to tell because, well.. I can't see it happening off the screen.

Anyway, the enemies work fine if they're on a jump-through platform (those are all active objects). They also work fine if they are on a backdrop obstacle AND they're visible on the screen. They detect the obstacle just fine. But if I walk away from them and come back, they will be gone.

Does anyone know what might be causing this?

 
n/a

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
23rd August, 2006 at 05:24:57 -

Go to the properties of your enemies - and set "Inactive if too far from window" to "No".
Just tried it now, and it seems to work for me (I am using MMF2 - I'm sure there is that option for actives in MMF 1.5 though).

 
This is a signature. Have this one on me.

deadeye



Registered
  22/07/2006
Points
  73
23rd August, 2006 at 05:27:31 -

As in, make sure that's unchecked? Because it is. That was the first thing I looked at.

 
n/a

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
23rd August, 2006 at 05:29:46 -

In MMF2 there is a drop-down list for me, set to "Automatic" and there are options of "Yes" and "No" as well.
I can't remember if it is different in MMF..

Tried unticking the other boxes (destroy if too far from frame .etc).
If you can't do it then send me the source and I'll take a look for you. That's if you want too anyway

Image Edited by the Author.

 
This is a signature. Have this one on me.

deadeye



Registered
  22/07/2006
Points
  73
23rd August, 2006 at 05:36:00 -

I'm using MMF 1.5

I'll mail you the link to the file...

Edit: Mail sent

Edit 2: Oh, nevermind. ThePodunkian over at total-klik figured it out. Its a frame setting for "Handle background collisions even out of window." Fixed it right up.

Thanks, though...



Image Edited by the Author.

Image Edited by the Author.

 
n/a

DanielRehn



Registered
  18/09/2002
Points
  139
23rd August, 2006 at 05:52:20 -

If yu have some sort of gravity on them.... Go to Frame Properties and CHECK "Handle background collisions even out of window"... Else they will just ignore the background and fall right throguh them...


Damn... beaten in seconds >.<

Image Edited by the Author.

 
n/a

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
23rd August, 2006 at 06:01:01 -

Lol I replied to your email, but seeing as you have it sorted now it doesn't matter

 
This is a signature. Have this one on me.
   

Post Reply



 



Advertisement

Worth A Click