Actor interaction problem, please help!

QuestionManQuestionMan Member Posts: 81
edited August 2012 in Working with GS (Mac)
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

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    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

  • QuestionManQuestionMan Member Posts: 81
    Hey I think that fixed it for me, at least I can't recreate the problem yet. Thanks!
Sign In or Register to comment.