don't worry about that, I've sorted it out. Thanks. But there's another problem to do with moving an entity. It won't move when I press the keys I have set. Here's the code.
Quote:
action move_plane ()
{
plane = me;
my.ambient = 100;
while (1)
{
if (key_a)
my.pan += 3*time_step;
if (key_d)
my.pan -= 3*time_step;
if (key_w)
c_move (me,vector(0,15*time_step,0), nullvector, GLIDE);
wait (1);
if (key_s)
c_move (me, vector(0,-15*time_step,0), nullvector,GLIDE);
wait (1);
}
}