The Daily Click ::. Forums ::. Klik Coding Help ::. Change color
 

Post Reply  Post Oekaki 
 

Posted By Message

Jarzka



Registered
  26/12/2003
Points
  270

VIP Member
8th May, 2006 at 14:53:25 -

Hi again. I have some problems useing "Change color" command.

- When I select color to replace by some other color, it is "Replace Color RGB(X,X,X) by RGB(X,X,X). But when I try to use Calculator and do it by myself, command RGB(0,0,0) does not work? Or even I make it 255,255,255 it maybe thinks it is R=255,255,255 G=0 B=0 or something

- When I have replaced color once, I can't change it again. Why?

- It changes color to all "my_object" objects. I only want to change one object's color.

Bad english, sorry.

Image Edited by the Author.

Image Edited by the Author.

 
n/a

Werbad



Registered
  18/09/2002
Points
  235
8th May, 2006 at 15:06:36 -

Use GetRGB(X,X,X) if you use a calculation.
If you use "Replace color (0,0,0) by (255,255,255)" then all black areas will become white. If you later will make them red, you cannot use (0,0,0) since the areas are white.
Replace color uses the current color on the object and not the original one.
To get the current color of the object, use GetRGB("Active",x,y)

 
n/a

Jarzka



Registered
  26/12/2003
Points
  270

VIP Member
8th May, 2006 at 15:08:17 -

Ok, Thank you for your help. But there is still this problem: - It changes color to all "my_object" objects. I only want to change one object's color.

EDIT: I think GetRGB is "RGBAt( "Active", X, Y)"

Image Edited by the Author.

 
n/a

Werbad



Registered
  18/09/2002
Points
  235
8th May, 2006 at 17:49:00 -

I dont think it's possible to change single objects, atleast not using active objects only...

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
8th May, 2006 at 20:55:41 -

Yeah, it is. If it's about duplicates of the same active object, you can spread a value of 1 in an alterable value of these objects and use those numbers as an identfication for that specific object.

 
Old member (~2004-2007).

Werbad



Registered
  18/09/2002
Points
  235
9th May, 2006 at 07:26:07 -

oes that really work with Change Color? I have trie a lot of times but never got it working

 
n/a
   

Post Reply



 



Advertisement

Worth A Click