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
  6/3/2002
Points
  1436

VIP Member
6th April, 2012 at 4/6/2012 8:42:13 AM -

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
  12/29/2010
Points
  282
6th April, 2012 at 4/6/2012 9:27:16 AM -

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

GrimFusion

Ancient Kliker

Registered
  7/1/2002
Points
  631

VIP MemberStar
6th April, 2012 at 4/6/2012 2:26:10 PM -

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 GrimFusion

 
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
  4/30/2008
Points
  158
8th April, 2012 at 4/8/2012 1:14:59 AM -

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
  6/3/2002
Points
  1436

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

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

 
~¿?¿?¿?¿?¿?¿?¿?¿?¿?~
   

Post Reply



 



Advertisement

Worth A Click