Thread: Rotating images
View Single Post
  #15  
Old 12-30-2011, 04:09 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Quote:
Originally Posted by cbk1994 View Post
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);
  }

Thanks, my problem was that I didn't use showimg.rotationCenter inside GuiShowImgCtrl
Reply With Quote