New User - Trouble with Collision

NYPNYP Member Posts: 12
First time post. I am having trouble setting up a rule in which when one actor moves over a second actor the second actor is destroyed. Think Pac Man eating the pellets. I have it working fine in one scene with two actors - this is a scratchpad where i try stuff out - but in my second scene - the actual game scene - in which i am using two different actors, the second actor (the pellet i want to be destroyed) refuses to interact with the first actor (the munching figure). Can anyone suggest some typical schoolboy errors it sounds like i might be committing? With thanks.

Best Answer

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    Is it possible that you unlocked one of the actors on the scene? If so, you created an "instance" of the actor with its own unique rules. Try deleting your actors from the scene and re-adding them. Does it work after doing that?

Answers

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    In the pellet actor put a rule that says:

    When Overlap or Collide with Pac Man

    Add a Destroy Behavior in the rule.


    You could/would also add a change attribute in that rule to update your score, if you want that to increase each time a pellet is eaten.
  • NYPNYP Member Posts: 12
    Thanks Jamie, that's the Rule i've got working with two sets of actors in one scene, but in a second scene with two different actors it won't work. Is there something about the way i've got my actor set up that means it won't react/register the overlap event?
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Not sure, can you post and image of your rules?

    A couple thoughts...

    Are you sure you have the correct actor or tag selected in the Rule?

    Are you sure your rules are active in the prototype actors and not just one instance of the actor(s)?
  • NYPNYP Member Posts: 12
    Thanks Jamie and Tatiang. Yes, I deleted the actors and re-added them after adding the rule to the prototype. Thanks!
Sign In or Register to comment.