Ah, oke, jetzt habe ich es bemerkt.
Code:
var enemy_movevector[3];
function detect_player()
	{
		while(1)
		{
    c_trace(my.x,spieler,IGNORE_PASSABLE|IGNORE_CONTENT);
    wait(1);
    }
	
	
	if (hit.x)
	{
	c_move(my,enemy_movevector,target,IGNORE_PASSABLE|IGNORE_SPRITES|GLIDE|USE_POLYGON);
}
}
action enemy()
{
	detect_player();
}

besser so??

PS: Wer oder Was ist "Indent" ??

mfG

Last edited by TheShooter; 03/08/11 15:19.

Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*