Quote:
Originally Posted by Pelikano
Hmm couldn't get this working, can I see where you are using this Gunderak?
I can't find rotationcenter or rotationcentre on the graal wiki anyway... hmm
|
This is working for me:
PHP Code:
//#CLIENTSIDE
function onCreated() {
with (findImg(200)) {
image = "light3.png";
x = GraalControl.width / 2;
y = GraalControl.height / 2;
layer = 4;
// these two lines are the key:
useOwnCenter = true;
rotationCenter = {20, 20};
}
while (true) {
findImg(200).rotation += 0.1;
sleep(0.05);
}
}