Making an actor color change based on the objects speed?

ranxxxranxxx Member Posts: 87
edited November -1 in Working with GS (Mac)
how do do i do that?

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Err, maybe like this:

    Rule: When speed is (whatever)
    Change attribute : Alpha (color)

    I believe you could do that for each speed you wanted.
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    uptimistik said:
    If Self.Motion.Linear Velocity X is greater than 140
    Change Attribute Self Color to
    Self Color red x
    Self Color blue x
    etc. etc. etc.

    He put it in better words then me ;)
  • ranxxxranxxx Member Posts: 87
  • sebmacflysebmacfly Member Posts: 1,018
    you can have a smooth color change using that way :

    Constrain Attribute : self.Color.Red to (Self.Motion.LinearVelocityX+Self.Motion.LinearVelocityY)/1000
    Constrain Attribute : self.Color.Blue to (Self.Motion.LinearVelocityX+Self.Motion.LinearVelocityY)/1000
    Constrain Attribute : self.Color.Green to (Self.Motion.LinearVelocityX+Self.Motion.LinearVelocityY)/1000

    Where 1000= your max object speed. (you can change it to 1500 or 2000, depend on your prefered effect). Note that this value have to be set on your max speed for this actor.

    You can change something in the green or blue color to make different effects.

    Hope that help ;)
    Cheers!
Sign In or Register to comment.