Actor change on collide?
PixelPun
Member Posts: 324
Hello, I have a simple problem...(I think) I am trying to get a actor to change it color after another actor touches it, this maybe simple but I have tried everything. Think of a colored wall and every time an actor passes it, it will change color. How can I achieve this? Any help would be awesome.... Thank you in advance!
Comments
When actor overlaps/collides change attribute self.color.red to (value) self.color.green to (value) and self.color.blue to (value)
So when actor 2 overlaps/collides with actor 1
Change attribute: self.color.red to ???
self.color.green to ???
self.color.blue to ???
self.color.alpha to ???
OTHERWISE....
(Here you will have to change the color attribute to the actors original colors displayed)
Keep in mind that the color of an actor is an attribute itself, dont try to make different attributes for color change because its already there for you