try this instead:

Code:
action shadow_act(){
     VECTOR temp;
     var distance_to_ground = 25;//set this yourself
     set(my,PASSABLE);
     my.tilt = -90;//or 90
     while(you){wait(1);
               vec_set(my.x, vector(you.x,you.y,you.z-distance_to_ground));
     }
     ent_remove(me);
}

action enemy_act(){
     //begining of action
     ...
     ent_create("sShadow_Enemy.png",my.x,shadow_act);
     ...
     //before the while loop
}



This just creates the shadow under the enemy, and follows it until the enemy is removed.

Last edited by DLively; 07/05/14 18:16.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com