Need To Seperate Actors - Just Can't Figure It Out

klickonnklickonn Member Posts: 9
edited November -1 in Working with GS (Mac)
First off hi to everyone here, I am quite excited as I think I could make some ok games, I'm new to GS - as you will probably see from my question......

I made a simple scene with 2 actors (more will be added later), when an actor is clicked it is destroyed and points added to score.

So added a rule, put Destroy actor in it and Change Attribute - add to score etc.

All ok but when one actor is clicked both are destroyed and both sets of points are added to score. I'm sure it is something really simple but I just can't figure it out.

Comments

  • VoidedSkyVoidedSky Member Posts: 1,095
    Make sure you have when TOUCH is PRESSED, not when MOUSE BUTTON is DOWN.

    Hope this helped!

    Welcome to the forums!
  • klickonnklickonn Member Posts: 9
    Hi Guys, thanks for the reponses but the issue is still there.

    Just to make it clear what attributes each actor has:

    Move To

    Rule - Change Attribute when all conditions are valid (actor receives event touch is pressed) + Destroy this actor.

    Collision attributes.

    Thats it so far.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Are the two actors overlapping or something? Otherwise I don't see why the "when touch is pressed" rule isn't working. It really sounds like you are using mouse is down - are you sure you didn't use that?
  • klickonnklickonn Member Posts: 9
    I am using "when touch is pressed" - but I just figured it out.

    With each actor I was using one rule to add to score and destroy. I created seperate rules for these two and it works.

    Not sure why this should be, is it a bug? Surely the point of a rule is multiple functions - otherwise why not just have an attribute?

    Anyway its working now so time to move on to the next issue.......
Sign In or Register to comment.