Turning an actor behaviour on and off
Hi guys
I have a query which I hope someone can help with as I am a newbie to this programming lark
I have created a simple mine field game and I need help telling the mine that if it collides with the man actor and a shield rule is true it will not kill him.
I have an attribute called 'minefield live' which will cause gamesalad to randomly plot 5 mines on the screen and then I use a timer to interpolate them invisible...that's easy.
I then have a rule that says to the mine, if the man actor collide with the mine and minefield is true then destroy both the man actor and the mine actor it collide with.
How I have a bonus box that says if the actor touches it, it lights up a shield actor on the bottom of the screen. Now when the player touches the shield emblem it spawns a shield around the man actor....all ok so far.
Now my problem is I cannot work out ow to tell any of the other live mines on the screen that if the actor is in shield mode, not to destroy the man actor as when he hits a mine and shield is true he still gets destroyed.
My question is...how do I get the man actor with shield as true, not get destroyed?
Any thoughts?
Thanks in advance guys....been driving me potty all morning!
I have a query which I hope someone can help with as I am a newbie to this programming lark
I have created a simple mine field game and I need help telling the mine that if it collides with the man actor and a shield rule is true it will not kill him.
I have an attribute called 'minefield live' which will cause gamesalad to randomly plot 5 mines on the screen and then I use a timer to interpolate them invisible...that's easy.
I then have a rule that says to the mine, if the man actor collide with the mine and minefield is true then destroy both the man actor and the mine actor it collide with.
How I have a bonus box that says if the actor touches it, it lights up a shield actor on the bottom of the screen. Now when the player touches the shield emblem it spawns a shield around the man actor....all ok so far.
Now my problem is I cannot work out ow to tell any of the other live mines on the screen that if the actor is in shield mode, not to destroy the man actor as when he hits a mine and shield is true he still gets destroyed.
My question is...how do I get the man actor with shield as true, not get destroyed?
Any thoughts?
Thanks in advance guys....been driving me potty all morning!
It takes a Zombie to know a Zombie!!!
Comments
"if the main actor collides with the mine and minefield is true [and shield is false] destroy both "
So if the shied is 'true' he won't get killed.
Thanks for that...it was simple in the end!
Thanks for your help again...your a star!
It takes a Zombie to know a Zombie!!!