now i did this....i don´t know, if it is that, what you meant.....it doesn´t work...the player stays at his place and doesn´t fall down.....
Code:
ACTION pod
{
player=my;
var pod;
score.visible=on;
my.event=fall_event;
newtoncreategravityentity(wood_material);
pod= NewtonGetBody (my);
NewtonSetBodyActiveState (pod,1);
while(1)
{
////camera////
update_views();
camera_to_target();
////walking////
ent_cycle("core", my.skill48 % 100); // wiederhole die Animation endlos
my.skill48 += 8 * time;
////controle////
if (key_cuu==1)
{
laufen=1;
ent_cycle("run", my.skill48 % 100);
}
else
{
laufen=0;
}
if (key_cud==1)
{
laufen=-1;
}
if (key_cul==1)
{
my.pan+=5*time;
}
if (key_cur==1)
{
my.pan-=5*time;
}
wait(1);
}
}
}
why doesn´t that work?
Regards Efrint