Here's the code so far, as you can see, I'm experimenting with c-move:
#include <acknex.h>
#include <default.c>


VECTOR Player1_speed;
ENTITY* Player1;


BMAP* mouse_point = "mouse_pointer.bmp";
BMAP* new_panel_1 = "panel_1.bmp";
BMAP* main_menu = "main_menu.bmp";


PANEL* new_panel =
{
pos_x = -5;
pos_y = 400;
layer = 1;
bmap = new_panel_1;
button (10,10, "Exit_button.bmp", "Exit_button_checked.bmp", "Exit_button.bmp",quit_program, NULL, NULL);
flags = OVERLAY | VISIBLE;
}

function mouse_toggle()
{
mouse_map = mouse_point;
mouse_mode = 1;
while (1)
{
mouse_pos.x = mouse_cursor.x;
mouse_pos.y = mouse_cursor.y;
wait (1);
}
}

function quit_program()
{
sys_exit (NULL);
}



function main()
{
video_mode = 7;
video_screen = 1;
level_load ("Test_map_1.wmb");
wait (2);
Player1 = ent_create ("Person.mdl", vector(-500, -100, 0), NULL);
ph_setgravity (vector(0, 0, -200));
phent_settype (Player1, PH_RIGID, PH_BOX);
phent_setmass (Player1,3, PH_BOX);
phent_setfriction (Player1, 80);
phent_setdamping (Player1, 40, 40);
phent_setelasticity (Player1, 50, 20);
while (1)
{
camera.x = Player1.x -200;
camera.y = Player1.y;
camera.z = Player1.z+50 ;
on_m = mouse_toggle;
on_q = quit_program;
wait(1);
}
}

action move_me()
{
while (key_w)
{
c_move (Player1, nullvector, vector(0, 0, 50*time_step), GLIDE);
wait (1);
}
}



Last edited by Harstad; 01/24/09 17:48.