Thread: Rotating images
View Single Post
  #15  
Old 12-30-2011, 07:31 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Pelikano View Post
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";
    
    
GraalControl.width 2;
    
GraalControl.height 2;
    
    
layer 4;
    
    
// these two lines are the key:
    
useOwnCenter true;
    
rotationCenter = {2020};
  }
  
  while (
true) {
    
findImg(200).rotation += 0.1;
    
sleep(0.05);
  }

__________________
Reply With Quote