Code:
#include <acknex.h>
VECTOR* top_git;

action topa()
{
	player = me;
	while(1)
   {
   pXent_setvelocity(me,top_git);
   pXent_setdamping(me,34,40);  
   pXent_settype(me,PH_STATIC,PH_SPHERE);
  	pXent_move(me,top_git,nullvector);
  	if(key_w) 
  	top_git.x += 3;
  	wait(1); 
  	}
}

function cikis()
{
	sys_exit(NULL);
}

function main()
{
	 physX_open();
	video_screen = 1;
	video_mode = 10;
	level_load("AtesTop.wmb");
  	on_esc = cikis;
}



What went wrong there?

Last edited by Sorrowful; 06/11/12 17:05.

A8.40 Professional
Sancak Oyun Ekibi