Pretty inefficient and sore on the eyes. I use this on Maloria, perhaps any of it would make it possible for you to tweak yours?
PHP Code:
//#CLIENTSIDE
function onCreated()
{
setImg("mal_clock.gif");
drawUnderPlayer();
setTimer(.05);
}
function onTimeOut()
{
// Hour
with (findImg(200)) {
this.angle = -pi*(serverr.time.hour/6);
polygon = { x + 1, y + .9, x + 1 - .3*sin(this.angle), y + .9 - .3*cos(this.angle) };
red = .45, green = .2, blue = .1;
layer = 2;
}
// Minute
with (findImg(201)) {
this.angle = -pi*(serverr.time.minute/30);
polygon = { x + 1, y + .9, x + 1 - .5*sin(this.angle), y + .9 - .5*cos(this.angle) };
red = .3, green = .2, blue = .1;
layer = 2;
}
// Second
with (findImg(202)) {
this.angle = -pi*(serverr.time.second/30);
polygon = { x + 1, y + .9, x + 1 - .35*sin(this.angle), y + .9 - .35*cos(this.angle) };
red = .3, green = .2, blue = .1;
layer = 2;
}
setTimer(.05);
}
function onActionDoubleMouse()
{
client.messages.add("This is a clock");
client.messages.add("The current time is" SPC serverr.time.hour @ ":" @ serverr.time.minute);
}