view.x=mouse.x;
view.y=mouse.y;
view.x+=xmouse-(view.width/2);
view.y+=ymouse-(view.height/2);
double speed=3.5;//This is your speed
if(view.x>M_Ghost.x)view.x-=speed;
else if(view.x<M_Ghost.x)view.x+=speed;
if(view.y>M_Ghost.y)view.y-=speed;
else if(view.y<M_Ghost.y)view.y+=speed;
Users browsing this forum: No registered users and 1 guest