The Daily Click ::. Forums ::. Klik Coding Help ::. Qualifiers & Collisions in MMF2
 

Post Reply  Post Oekaki 
 

Posted By Message

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
14th August, 2008 at 21:18:13 -

With my Baby Ghost engine, I coded it so that collisions with hurtful objects (objects that cause damage or cause you to bounce away) are based on Group.Bad. That way, I could make it that colliding with any object in the Group.Bad would activate the code and I wouldn't have to code them seperately. However, the code is only activated by two of the objects in this group (the up-facing spikes and down-facing spikes). I'm pretty sure that this is an inherent problem with MMF2, but is there a way around this so that I don't have to code each different object separately?

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
15th August, 2008 at 08:58:49 -

Ah, the infamous qualifier collision detection bug. Most people claim that it's just bad coding, not a MMF bug, but I don't really know anymore. What I do know is that it's really messed up a lot of my games.

You can always use an alterable value instead of a qualifier.. I've done that before and it works. Or use the code pixelthief suggests here: http://www.create-games.com/forum_post.asp?id=222433

That's fixed my problem.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
15th August, 2008 at 10:02:50 -

I had to read my own post 3 times to figure out what the heck I was jabbering about!

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
15th August, 2008 at 13:17:09 -

Lol, that code has been vital to getting my games to work. I refer to it as the "Pixelthief code" in my comments

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image
   

Post Reply



 



Advertisement

Worth A Click