The Daily Click ::. Forums ::. Klik Coding Help ::. Frustrating issue with what should be very simple events!
 

Post Reply  Post Oekaki 
 

Posted By Message

Buster

BLING COMMANDER

Registered
  03/06/2002
Points
  1545

VIP Member
6th April, 2012 at 06/04/2012 08:42:13 -

I have a couple of very simple events that are not working and it is becoming very frustrating! The events are:

'Detector' is over 'Character' > Make 'Character' visible.
'Detector' is NOT over 'Character' > Make 'Character' invisible.

When I run the application, the characters that are supposed to be invisible are invisible and the characters that are supposed to be visible are visible, however, when 'Detector' is moved from one 'Character' to another 'Character' the 'Character' that is no longer being overlapped by 'Detector' will not become invisible until 'Detector' is not overlapping any 'Characters' at all.

So it's like half the events effect each character individually and the other half effect the characters as a group. It doesn's make sense to me. Can anyone help me?

 

Alonso Martin



Registered
  29/12/2010
Points
  294
6th April, 2012 at 06/04/2012 09:27:16 -

Switch the overlapping conditions to 'Character' is over 'Detector'. The first object in the comparison is the one for which the selection is performed, not the second. Tell me if that fixed it.

 
www.hfalicia.com
www.alonsomartin.mx

The_Antisony

At least I'm not Circy

Registered
  01/07/2002
Points
  1341

VIP MemberStarSnow
6th April, 2012 at 06/04/2012 14:26:10 -

Alonso's example should work.
He already kinda explained it. MMF is testing for when the detector overlaps ANY of the character objects because you have the detector set as the selector. When MMF finds that the detector does overlap ANY of the Character objects, it selects all of the character objects. If you change it around, MMF will test your all of your characters for overlap with the single detector, so MMF will be able to work with the Character object independently instead of selecting all of them.

If it doesn't, this is something else you might want to try.
("Character") Flag = 0; Make Character invisible.
Flag = 1; Make Character visible.
Character overlaps Detector; Set ("Character") Flag = 1.
NEGATE Character overlaps Detector; Set ("Character") Flag = 0.

Edited by The_Antisony

 
ChrisD> Employer: Say, wanna see a magic trick?
ChrisD> Employee: Uhh… sure, boss.
ChrisD> Employer: Your job! It just disappeared! Pack your things and leave! Pretty good trick, huh?

Rick Shaw



Registered
  30/04/2008
Points
  158
8th April, 2012 at 08/04/2012 01:14:59 -

I had this exact problem once and the answer was what Alonso suggests. I wasted months on the bug, and then I got an answer via these forums.

Edited by Rick Shaw

 
n/a

Buster

BLING COMMANDER

Registered
  03/06/2002
Points
  1545

VIP Member
11th April, 2012 at 11/04/2012 10:55:18 -

Phew! thanks a lot for your help guys, I really appreciate it!

 
   

Post Reply



 



Advertisement

Worth A Click