ok here is what i got:

Code:
 
Action player_walk
{
player = me;
player.healthpoints = 500;
player.items = 0;
player.armour = 20;
player.attack = 30;
str = 35;
while(player.healthpoints > 0)
{
camera.x = player.x - 200*cos(player.pan);
camera.y = player.y - 200*sin(player.pan);
camera.z = player.z + 100;
camera.pan = player.pan;
camera.tilt = -20;
my.pan += 4*(key_a - key_d)*time-20*mouse_force.x*time;
compass += 6*(key_a - key_d)*time-20*mouse_force.x*time;
player_speed.x = 15*(key_w - key_s)*time;
player_speed.y = 0;
player_speed.z = 0;

If((key_w +key_s)!= 0)
{
ent_cycle("walk", my.skill20);
my.skill20 += 4*(key_w - key_s)*time;
my.skill20 %= 100;
}
else
{
if(mouse_left != 1)
{
ent_cycle("stand",my.skill20);
my.skill20 += 2 * time;
my.skill20 %= 100;
}
else
{
If(weapon_equip == 1)
{
ent_vertex(my.sword_tip, 500);
ent_vertex(my.sword_base, 20);
trace_mode = ignore_me + ignore_passable;
trace(my.sword_base, my.sword_tip);
if(result != 0)
{
if(you != null) {you.healthpoints -= 2 * str * time;}
}
ent_cycle("attack", my.skill22);
my.skill22 += 8 * time;

}


}

}
move_mode = ignore_passable;
ent_move(player_speed, nullvector);
wait(1);
}
If(player.healthpoints < 0)
{

death_text.visible = on;
}
}



What is a simple way to add gravity so my player doesnt fly after going down stairs?




If You Program Are You Making Games? Or Is It The World That Makes The Game? Or The Models?? Oh Well... -------------------------------------------------- Im trying to make a game...please help me