Actor change on collide?

PixelPunPixelPun Member Posts: 324
edited November -1 in Working with GS (Mac)
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

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    make a rule:
    When actor overlaps/collides change attribute self.color.red to (value) self.color.green to (value) and self.color.blue to (value)
  • expired_012expired_012 Member Posts: 1,802
    Lets just say that actor 1= the moving actor, and actor 2= the actor that is being color changed.

    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
Sign In or Register to comment.