evento create:
Código: Selecionar todos
mouse_old_x=mouse_x;
mouse_old_y=mouse_y;
Código: Selecionar todos
///Mouse Direction: Move Camara
if mouse_x<mouse_old_x //mouse move left;
{
direction+=5;
}
else if mouse_x>mouse_old_x //mouse move right;
{
direction-=5;
}
if mouse_y<mouse_old_y //mouse move up;
{
rotatez+=0.05;
}
else if mouse_y>mouse_old_y //mouse move down;
{
rotatez-=0.05;
}
mouse_old_x=mouse_x;
mouse_old_y=mouse_y;
alguem me pode explicar a melhor forma?