Actor interaction problem, please help!
I have a weapon coming down from the top onto several monsters moving towards the left side of the screen. If the weapon comes in at a certain angle, one of the monsters will react like it is hit, but none of the effects will be triggered. Note: This only happens when another monster is hit at the same time from a certain angle. I tried messing around with the shapes, rectangle and circle, but the same thing happens. Why is this happening? How can I fix it? Thanks for any help guys/gals!
Best Answer
-
tatiang Posts: 11,949
Do you have a rule that Destroys (or moves/recycles) the weapon when it collides with a monster? If so, it's only going to run that rule once. If that's what's happening, you may want to consider hiding the weapon when it collides (e.g. Change Attribute self.color.alpha to 0) but not destroying it immediately so that it can still collide with other monsters. You could add a timer After 0.3 seconds --> Destroy or something along those lines.New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers