jane ich hab es probiert es hat nicht geklppt

Aber, dann hab ich etws anderes probiert das hat nun geklappt doch nun ist
eine hlfte der figur in den blocken des level eingetaucht.
action walking_guard()
{
while (1)
{
player = my; // I'm the player
vec_set (camera.x, player.pan);
vec_rotate (camera.x, player.pan);
vec_add (camera.x, player.x);
camera.pan = 90; // look down at the player
camera.y = -500;
var player_down;
var dist_ahead = 5*(key_w-key_s)*time_step;
player_speeds.x = 20 * (key_space && key_w) * time_step; // move forward / backward with W / S, 10 gives the movement speed
player_speed.x = 10 * (key_w - key_s) * time_step; // move forward / backward with W / S, 10 gives the movement speed
player_speed.y = 0;
player_speed.z = 0;
c_move (my, player_speed.x, nullvector, GLIDE);
c_trace(my.x,vector(my.x,my.y,my.z-2500),IGNORE_ME|IGNORE_SPRITES|IGNORE_CONTENT);
my.z = hit.z - hit.y;
if (key_w || key_s)
{
ent_animate(me,"walk",walk_percentage, ANM_CYCLE); // "walk" animation loop
walk_percentage+= 8 * time_step; // "8" controls the animation speed
}
else // the player is standing still?
{
ent_animate(my, "stand", walk_percentage, ANM_CYCLE);
walk_percentage+= 1 * time_step; // "1" controls the animation speed
}
if (key_space && key_w)
{
c_move (my, player_speeds.x, nullvector, USE_BOX | ACTIVATE_PUSH);
ent_animate(me,"run",walk_percentage, ANM_CYCLE); // "walk" animation loop
walk_percentage+= 10 * time_step; // "8" controls the animation speed
}
if (key_a)
{
my.z += 350 * time_step; // move the entity along the x axis
ent_animate(me,"stand",walk_percentage, ANM_CYCLE); // "walk" animation loop
walk_percentage+= 10 * time_step; // "8" controls the animation speed
}
wait (1);
}
}