Change Color of the Actor

SwaggedSwagged Member Posts: 50
edited November -1 in Working with GS (Mac)
I have a ball actor and i'm trying to make an option for it to change colors in the options menu. How would i do that and what rules do i apply?

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    Make a rule;

    If game.BallColor = 1 then;
    Change attribute self.color.Red to X, self.color.green to X, self.color.blue to X (Depending on which color you want to change it to).

    This is only possible if you're ball is WHITE and you want to change it to whatever color. If you're ball has a color on it then it'll make the ball look weird (i.e. if you have a red ball as your image.png and you try to make it blue, it'll come out a weird dark purple/blue color).

    Or you can make separate images for each ball;
    Rule if game.ballcolor = 1
    then change image to image.png

    etc. etc.
  • SwaggedSwagged Member Posts: 50
    thanks bro
Sign In or Register to comment.