Make an actor change color every second?

steeler0038steeler0038 Member Posts: 153
edited November -1 in Working with GS (Mac)
How do i do this?

Comments

  • JeffreyShimaneJeffreyShimane Member Posts: 372
    You could do this via the animation behavior. Create different color versions of your actor (however many you want), then import them into the animation behavior and set the framerate to 1 frame/sec.

    - Jeff
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    in each actor theres self color attributes that are red,blue, and green. They can go from 0-1, and remember you have to change the other colors to 0 as well as chnaging the color u want to 1

    So if you wanted to change a actor to red when say touch is pressed, you would do this:

    Rule: When actor receives event touch is pressed:
    -Change attribute self color red to 1
    -change attibute self color blue to 0
    -change attribute self color green to 0
  • YarikYarik Member Posts: 15
    Timer every 1
    Change Attribute self.Color.Red = random(0,100)/100
    Change Attribute self.Color.Green = random(0,100)/100
    Change Attribute self.Color.Blue = random(0,100)/100
Sign In or Register to comment.