Can you collide actors ONLY when an attribute is true??
MightyBoosh
Member Posts: 83
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.
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
If Attribute --> Color alpha = 1
bounce
Otherwise
nothing
Maybe switch it up... put the collision in the otherwise portion of the rule.
uploading now
edit: its ready to go...
check it out on my profile