Interpolating Colors?

BlazingApplicationsBlazingApplications Member Posts: 340
edited November -1 in Working with GS (Mac)
Is it is possible to interpolate an actors color? The reason I'm asking is when I try to set the rule,

when overlaping with actor 2 then
interpolate self.color.red to 255
duration=1 linear

and when the actor hits it does not change to red...

any suggestions?

Comments

  • sparkzillasparkzilla Member Posts: 152
    There are three primary colors (Red-Green-Blue) You may need to change the other colors to get what you want.

    Hint: Store color combinations in My Behaviors for easy recall.

    __________________

    Coming Soon!: Sweepr
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Color attributes are between 0 and 1, so youl have to switch the red blue and green between 0 and 1 to get desired color.

    So to change to red have a rule when object overlaps with actor 2

    change attribute self color blue to 0
    change attribute self color green to 0
    change attribute self color red to 1

    cheers
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    the color attribute use a range of 0 to 1 if you wanna know what 255 on red will look like go into all of the color selector stuff and sett 255 and then look at the actual self.color.red number is.

    I just looked and 255 is 1 so just try interpolating to 1 it should be able to do it cause you can interpolate alpha and thats a color attribute too.

    Edit: Darn You john ;) where gonna have to start tallying when we beat each other to post.
Sign In or Register to comment.