Sorry to bring this back,

I'm having a slight big problem.

I've been reading in other posts about bouncing...
And after a couple hours between aum manual posts a scripting i found i got nowhere near what i wanted.

Can someone please tell me how to make a player come back a few steps when he
runs into a wall?

vec_for_angle didnt help at all
player1.x -= 4; this works sometimes

and the player most of the time and i mean something like 98& of the times
doesnt detect the impact shocked

[code]
function bounce_player()
{
if(event_type == EVENT_IMPACT || event_type == EVENT_ENTITY)
{
player1.x -= 4;
ent_animate(player1,"knockdown",player1.animate,anm_cycle);
player1.animate += 5 * time_step;
player1.animate %= 100;
//you.health -= 1;
wait(1);
}
}

action wall()
{
my.ENABLE_ENTITY = on; // make entity sensitive for block and entity collision
my.ENABLE_IMPACT = on;
my.ENABLE_BLOCK = on;
my.event = bounce_player;
}
[\code]

Thanks