View Single Post
  #5  
Old 12-16-2008, 09:05 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by thatdwarf View Post
PHP Code:
function onCreated() {
  
this.image "block.png";
  
setTimer(2);
  
onMovementFinished();
}
function 
onMovementFinished() {
  if(!
onwall(this.imgwidth(this.image), this.imgheight(this.image))) {
    
temp.movex sin(this.angle) * this.speed;
    
temp.movey cos(this.angle) * this.speed;
    
move(movexmovey.18);
  }
}

function 
onTimeout() {
  
destroy();

PHP Code:
function onCreated() {
  
this.image "block.png";
  
setTimer(2);
  
onMovementFinished();
}
function 
onMovementFinished() {
  if(!
onwall(this.imgwidth(this.image), this.imgheight(this.image))) {
    
temp.movex sin(this.angle) * this.speed;
    
temp.movey cos(this.angle) * this.speed;
    
move(this.movexthis.movey.18);
  }
}

function 
onTimeout() {
  
destroy();

__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote