• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Change one object's color to be the same as another's.

J

Javier Ibarra

Guest
I've been playing around with Image_blend but I can't seem to figure out how to change the color of an object, to be the same as the color of another.

I have one object which color changes every room (random), and I want another object to be the same as the other every room, what code can I use for that?
 
K

kevins_office

Guest
Code:
// Code in the 2nd instance.
image_blend = first_instance_id.image_blend;
Better yet would be to set the color in a variable somewhere and then have each object update itself to that variable.
Either global.the_color or controller_object.instance_var_of_the_color.
 
Top