destroy is a bit final and resource heavy - an alternative would be to play with the self attribute alpha (found under color) - 1 is max opacity, 0 is not visible at all. you can interpolate for a smooth transition or just change it to 0 when pressed - it will stay at that level till something changes it back though - depends really if you plan on re-using the actors to save on processing or if you only need to do now and then destroy should be ok
i havent viewer yet. still learning to use gamesalad. also i have problem with touchin my charactors i have 1 in front of other and i can touch both. i only want 1 to vanish not 2. please help
tenrdrmer suggested this to me see if it will help you, .................................................. make a boolean game attribute called touchallowed
and then in the (your actor) make a rule when touch is inside --change attribute game.touchallowed to false Otherwise --change attribute game.touchallowed to true
and then add to your touch is pressed rule on the (your actor 2) add the condition game.touchallowed is true
Comments
tenrdrmer suggested this to me see if it will help you,
..................................................
make a boolean game attribute called touchallowed
and then in the (your actor) make a rule
when touch is inside
--change attribute game.touchallowed to false
Otherwise
--change attribute game.touchallowed to true
and then add to your touch is pressed rule on the (your actor 2) add the condition game.touchallowed is true