Actor Issue?!

Hi, I have a major issue with my game that needs a smart fix!
(tried for 2 days now!) Don't think it's possible...
I have a ball actor and 2 power-ups (Fire and Ice)
If ball hits Fire, fire attribute changes to 1 (fire)
If ball hits Ice, fire attribute changes to 0 (ice)
Problem is that the ball is the same actor, so all multiple balls will change to ice or fire (if theres more than 1 ball, which there is)
and if fire attribute = 1 then wood can burn
Please need help, Cheers! :-)
(tried for 2 days now!) Don't think it's possible...
I have a ball actor and 2 power-ups (Fire and Ice)
If ball hits Fire, fire attribute changes to 1 (fire)
If ball hits Ice, fire attribute changes to 0 (ice)
Problem is that the ball is the same actor, so all multiple balls will change to ice or fire (if theres more than 1 ball, which there is)
and if fire attribute = 1 then wood can burn
Please need help, Cheers! :-)
Comments
Darren.
I would use self.fire instead of game.fire then each actor will act differently.
Darren.
However one more issue! to be fixed PLEASE..
I need the wood to be destroyed only if self.fire=1 ???
If I put it in a game.fire=1 I get the same issue as I did to begin with ? need some smart advice! cheers again very much
FF1FF1
After that I made it so --
If self.fire=1 and overlap with wood then game.fire=1 then
If game.fire=1 and ball overlaps with wood then destroy wood
does that look right ? It does work ok!
Is there a way to make an actor say a certain amount of pixels from another ?
in X & Y ?
Like 6 squared pixels or something ?
Thank you.