y won't this code work
Posted: Fri Jul 02, 2010 4:13 am
i tried this
if(direction(player.x,player.y,aim.x,aim.y)>=direction(player.x,player.y,enemy.x,enemy.y+10))
if(direction(player.x,player.y,aim.x,aim.y)<=direction(player.x,player.y,enemy.x,enemy.y-10))
DestroyActor("enemy");
this
if(direction(player.x,player.y,aim.x,aim.y)<=direction(player.x,player.y,enemy.x,enemy.y+10))
if(direction(player.x,player.y,aim.x,aim.y)>=direction(player.x,player.y,enemy.x,enemy.y-10))
DestroyActor("enemy");
this
if(direction(player.x,player.y,aim.x,aim.y)>=direction(player.x,player.y,enemy.x,enemy.y-10))
if(direction(player.x,player.y,aim.x,aim.y)<=direction(player.x,player.y,enemy.x,enemy.y+10))
DestroyActor("enemy");
and this
if(direction(player.x,player.y,aim.x,aim.y)<=direction(player.x,player.y,enemy.x,enemy.y-10))
if(direction(player.x,player.y,aim.x,.aim.y)>=direction(player.x,player.y,enemy.x,enemy.y+10))
DestroyActor("enemy");
none of them work
i am trying to kill the enemy when he gets shot by player but i don't want to draw the bullet
if(direction(player.x,player.y,aim.x,aim.y)>=direction(player.x,player.y,enemy.x,enemy.y+10))
if(direction(player.x,player.y,aim.x,aim.y)<=direction(player.x,player.y,enemy.x,enemy.y-10))
DestroyActor("enemy");
this
if(direction(player.x,player.y,aim.x,aim.y)<=direction(player.x,player.y,enemy.x,enemy.y+10))
if(direction(player.x,player.y,aim.x,aim.y)>=direction(player.x,player.y,enemy.x,enemy.y-10))
DestroyActor("enemy");
this
if(direction(player.x,player.y,aim.x,aim.y)>=direction(player.x,player.y,enemy.x,enemy.y-10))
if(direction(player.x,player.y,aim.x,aim.y)<=direction(player.x,player.y,enemy.x,enemy.y+10))
DestroyActor("enemy");
and this
if(direction(player.x,player.y,aim.x,aim.y)<=direction(player.x,player.y,enemy.x,enemy.y-10))
if(direction(player.x,player.y,aim.x,.aim.y)>=direction(player.x,player.y,enemy.x,enemy.y+10))
DestroyActor("enemy");
none of them work
i am trying to kill the enemy when he gets shot by player but i don't want to draw the bullet