The Daily Click ::. Forums ::. Klik Coding Help ::. Fine Detection problem when layers are added (MMF2)
 

Post Reply  Post Oekaki 
 

Posted By Message

deadeye



Registered
  22/07/2006
Points
  73
1st September, 2006 at 20:26:58 -

I have all of my player and enemy collision boxes with "Use fine detection" checked. This is the only way they will work, if I uncheck it then they get stuck in the solid backdrops.

However when I add an additional layer below the playing field layer (for background parallax scrolling) it's as though MMF is unchecking "Use fine detection" for all of my collision objects on it's own. The option still shows as checked, but the collisions are all using the bounding box instead of the actual pixels in the object.

This happens even if the layer I add is completely empty. It does not happen if I put the additional layer on top of my playing field layer... but that kind of defeats the purpose of having background scrolling graphics.

Am I missing some option to check or is this a bug? Any help would be greatly appreciated.

 
n/a

deadeye



Registered
  22/07/2006
Points
  73
2nd September, 2006 at 01:24:58 -

Okay, since I'm not getting much response I decided to include an example file to demonstrate what I'm talking about:

http://projectbrimstone.googlepages.com/example.mfa

In the example you can see that the additional layer is on top. If you run the app the bunny does exactly what it's supposed to do... when it runs into a wall, it turns around and goes in the other direction.

Now turn off "Use fine detection" in the collision options of the bunny. When you run it, the bunny will "pop up" to the top of a wall when he runs into it. This is bad.

Now turn "Use fine detection" back on, only this time move the blank layer underneath the layer with the graphics. When you run the program, the bunny behaves exactly the same as if "Use fine detection" is turned off. The only difference is that there is a layer underneath it.

What could possibly be causing this? Please help

 
n/a

deadeye



Registered
  22/07/2006
Points
  73
3rd September, 2006 at 03:20:48 -

Just in case anyone was wondering (though it seems unlikely considering the underwhelming response), Yves at Clickteam confirms this is a bug and will try to have it fixed by the next build. Hooray, my first bug

So, if anyone else has fine detection problems with layers this is probably why.

 
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!
3rd September, 2006 at 07:31:51 -

Well, the CT forums were your best bet for reporting such a bug, anyway. Glad it will be fixed, so others don't run into the problem!

 
Old member (~2004-2007).

deadeye



Registered
  22/07/2006
Points
  73
3rd September, 2006 at 07:44:37 -

Well, I didn't know it was a bug at first. I thought I was doing something wrong, which is usually the case

 
n/a
   

Post Reply



 



Advertisement

Worth A Click