here's simple code I use
- Code: Select all
udaljenost = distance(igraac.x, igraac.y, xmouse, ymouse)/15;
MoveTo("igraac", 0, 0, udaljenost, "Mouse Position");
what am I doing wrong?
udaljenost = distance(igraac.x, igraac.y, xmouse, ymouse)/15;
MoveTo("igraac", 0, 0, udaljenost, "Mouse Position");
speed = distance(player.x, player.y, invisibleactor.x,invisibleactor.y)/30;
angle = direction(x,y,invisibleactor.x,invisibleactor.y);
directional_velocity=speed;
xvelocity=0;
yvelocity=0;
Users browsing this forum: No registered users and 1 guest