View Single Post
  #26  
Old 01-08-2014, 05:21 PM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
[QUOTE=BlueMelon;1724944]Consider this example:


Thanks for the tip. Here's what I got

PHP Code:
function onCreated() {
  
setshape(1,32,32);
  
setImg("block.png");
}

function 
onActionTest(){
  
destroy();
  }

//#CLIENTSIDE
function onCreated(){
 
dontblock();
 
setTimer(1);
  if (
player.x in |this.xthis.2| && player.y in |this.ythis.2|) { 
  
player.chat "HIT";} 
}


function 
onTimeOut(){
 
triggeraction(this.x,this.y,"Test");


PROBLEM:
It sometimes works, and sometimes doesn't. It seems to only destroy half the time... Anything I can modify to make it more reliable?
Reply With Quote