Posted By: tompo
strange c_rotate problem - 04/28/08 16:48
My code:
Everything working ok... until i'm only rotating or pressing W.
If i press W while rotating i have 1513 error it this code (c_rotate).
The same is while pressing W i make a turn with mouse.
Where is the problem?!
Code:
var mouse_hor;
var mouse_ver;
var sens_mouse;
define speed,skill1;
define speed_max,skill2;
while(me)
{
mouse_hor = (pointer.x -((screen_size.x )/2)) * sens_mouse;
mouse_ver = (pointer.y -((screen_size.y )/2)) * sens_mouse;
if(key_w ==1)
{if(my.speed < my.speed_max){my.speed += 0.5 *time_step;
c_rotate (me, vector(mouse_hor *time_step, mouse_ver *time_step, 0), ignore_passable | USE_AXISR);
c_move(me, vector(my.speed * time_step,0,0), nullvector, ignore_passable | glide);
wait(1);
}
Everything working ok... until i'm only rotating or pressing W.
If i press W while rotating i have 1513 error it this code (c_rotate).
The same is while pressing W i make a turn with mouse.
Where is the problem?!
