Can you collide actors ONLY when an attribute is true??

MightyBooshMightyBoosh Member Posts: 83
edited November -1 in Working with GS (Mac)
I am trying to get the actors to collide only when the alpha is 1 but can't figure it out. (actor is blinking - alpha 0 then alpha 1 inside a 1 second timer)

To prove I am not completely n00bish - I can make the actor only destroyable when alpha is 1 but the collision behaviour seems to work differently.

eg.
Actor receives event - touch - is pressed **and** attribute Alpha1 is true - destroy actor
THIS WORKS FINE

but

Attribute - Alpha1 is true - collide

produces a result that whether the alpha is 1 or 0 the collision still takes place.

It's like I need an "Otherwise - don't collide" function but this doesn't exist to my knowledge.

Seems like a fairly simple thing to do so I hope I am looking at it all wrong. Any help would be appreciated.

Comments

  • PhoticsPhotics Member Posts: 4,172
    The rule didn't work?

    If Attribute --> Color alpha = 1
    bounce
    Otherwise
    nothing

    Maybe switch it up... put the collision in the otherwise portion of the rule.
  • chosenonestudioschosenonestudios Member Posts: 1,714
    alright I just built a template for this....

    uploading now

    edit: its ready to go...

    check it out on my profile
  • MightyBooshMightyBoosh Member Posts: 83
    thanks guys for the very quick response. there was a small complication with the blinking attribute that was controlling the alpha but with your help I am there:))))
Sign In or Register to comment.