I actually figured Schubido's code out lol, but I shall use that because I might need to change the angle or something later on so thanks. Also what would be a proper jump code? at the moment I am using:

Code:
if (key_space) 
{
me.z +=16; //if space is pressed jump
ent_animate(me,"jump",jump_percentage,ANM_CYCLE);
//ent_playsound(me,woosh,100); //jumping plays woosh sound
}
if (me.z > 52) 
{
c_move(me,vector(0,0,-4.7),nullvector,GLIDE); //if the player is above z.20 then glide down at 0.8 speed, enable collision
//ent_animate(me,"jump",jump_percentage,ANM_CYCLE);
}



also, how can I set video_switch() to (key_o)?

Last edited by JakeBilbe; 05/18/11 10:40.