View Single Post
  #22  
Old 10-06-2007, 07:41 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Twinny View Post
I did this to create my rotating space ship (on Litheria)

PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
showimg(201, "", this.x, this.y);
  
findimg(201).shape = "test.3ds";
  
findimg(201).zoom = 0.03;
  
setTimer(0.05);
  
this.chat = "wee";
}

function 
onTimeout()
{
  
this.yrot += 0.05;
  
this.zrot += 0.05;
  
findimg(201).eulerrotation = {0,this.yrot,this.zrot};
  
setTimer(0.05);
} 
I can't say I like how you're mixing GS1 (showimg()) format with GS2 format
I would do this for the creation part:
PHP Code:
with (findimg(201)) {
  
x = thiso.x;
  
y = thiso.y;
  
shape = "test.3ds";
  
zoom = 0.03;
} 
Your method may take less space but you really shouldn't mix it up like that. Your method also probably takes more processing power, not that its noticeable.
__________________
Reply With Quote