cog question


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]

Posted by jay on March 13, 1998 at 00:30:45:

I am having problems with this cog.


flags=0x240

symbols

sector change
int color=0
message startup
message timer

end

#=============================================================================

code

startup:
timer:
if(color==0)
{
SetSectorTint(change,255/0/0);
color=1;
}
else
{
SetSectorTint(change,0/0/255);
color=0;
}
SetTimer(2.0);
Return;

end

I am still not sure if SetSectorTint(sector,rgb) rgb value need to be in a certain notation or not. I read that it follows the vel0 in syntax, but I am not sure how the number should be. This cog should change the tint for a sector from red to blue until the level is finished.

Jay


Follow Ups:



Post a Followup

Name:
E-Mail:
Subject:
Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]