Possible Bug. Cant change the image of just one actor. All the others get changed too.

scrapee_netscrapee_net Member Posts: 424
edited January 2012 in Working with GS (Mac)
Hello. I`m facing a problem that looks that I have never seen before.

I have a scene, and in this scene an actor called "Ballon Controller"that spawns another actor that is called ballon.

In this actor I have a timer, and inside it a change atribute value behavior and a spawn actor behavior.

The change attribute behavior, changes the game attribute "current_color" to a ramdom value between 1,2.

So the ballon is spawned.

The actor ballon has a boolean self attribute called "changed_color". By default it is false.

The ballon rules are these.

When attribute self.changed_color = false{

When game.current_color = 1 {
change image to red ballon
}else{
change image to green ballon
}

change attribute self.changed_color = true;
}

____________

That is it. The problem is that all ballons on the scene gets its color changed. This should not happen to ballons that have the attribute self.changed_color setted to true.

What is going on? I never remember some problem like this.
Sign In or Register to comment.