Changing Colour Attribute

MarcusOMarcusO Member Posts: 147
How do I change the colour attribute of an actor, e.g from red to blue when a certain condition is met.

From "Rule" if the condition is mouse button pressed, i've tried using "change attribute" to change the self.Colour. Blue = 1 . but nothing happens. The
box stays the default colour red.

Help!

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    the actors use rgb so to change the color to red you would do

    when touch is pressed-
    change attribute self.color.red to 1
    change attribute self.color.green to 0
    change attribute self .color. blue to 0
  • MarcusOMarcusO Member Posts: 147
    Thanks John.

    As you have guessed, i'm new to the Game Salad World.
    I was leaving out the other to colour attribute settings.
    Just tried it as you suggested and it works.

    Thanks
Sign In or Register to comment.