YolkfolkThe Dizzy Fansite 2 logged in0 playing
Community discussion

Quick Colour question

Started by Robbington on 12 December 2010 • 4,120 views

7 posts
#54850
Hey,

Quick question about changing the colour of an object,
During a cut scene I would like one of the characters to leave the room by making the objects colour get darker until it looks like it has dissapeared.
I have got to here, but it doesnt seem to like the code that is stored in the actual objects properties. I have tried passing it a regular hexi number, like CCCC00, but it seems to either to throw an error or change it to black.

idx = ObjFind(2012);
ObjSet(idx, O_COLOR, ff7d62eb);

Any help would be great.

Rob
👍 0
#72292
that should be

idx = ObjFind(2012);
ObjSet(idx, O_COLOR,0xff7d62eb);
👍 0
#72293
Ha, I see, you have to define it as a global varible in def.gs before you can pass it.

Thanks Rob,

Your welcome.
👍 0
#72294
That looks like a much better way of doing Colin,
thanks.

  :smile:
👍 0
#72299
[quote data-userid="365" data-postid="72294"]

That looks like a much better way of doing Colin,

[/quote]

  {yolkfolk}:scared:

sorry, just had to comment. {yolkfolk}:joy:

👍 0
#72303
Thats true,

The only way mine would be more useful is as a time saving measure for a colour you plan to use often.

Rob
👍 0
#72304
Ha! Just re-read that,

Sorry Colin, it was a typo, I'm sure you are a good looking guy and all, but I dont swing that way.
👍 0