The Daily Click ::. Forums ::. Klik Coding Help ::. Yet another bug.
 

Post Reply  Post Oekaki 
 

Posted By Message

sententia



Registered
  20/09/2005
Points
  162
23rd October, 2005 at 09:33:33 -

Ok, so, the game I'm making uses a lot of collisions, which trigger reactions. For example, there is a seesaw, and when the ball lands on the end, it flips (like a seesaw!). And a cannon where when the ball lands in it, it shoots it out. But the problem is, when you have multiple items (that are the same) when the reaction triggers, all of the other items of that kind trigger too. Does anyone know how to fiz this? (It is NOT pick one at random.)

 
n/a

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
23rd October, 2005 at 10:06:11 -

You need to change the "subject" of the event so that it concentrates on one object. For example, "If seesaw collides with ball, move ball" would move all balls on the play area, but "If ball collides with seesaw, move ball" would make MMF recognise that you're referring to the specific ball that hit the seesaw.

(This might actually be untrue for collisions as I haven't tested it, but a number of events do work like this.)

To make your objects unique, you could consider using Spread a Value. I'm not actually sure of the specifics, but a search in the Articles section might help.

 
http://www.davidn.co.nr - Games, music, living in America

sententia



Registered
  20/09/2005
Points
  162
23rd October, 2005 at 11:09:00 -

Im using TGF by the way. Also, not all the balls move, only one, but the problem is that all seesaws would flip instead of just one. But ok, Ill try switching subjects.

Image Edited by the Author.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click