T
Tsarem
Guest
Making a game similar to "Feeding Frenzy" in that, i wish to somehow use the mouse to move the sprite of the fish.
any tips?
any tips?
//movement
if mouse_check_button(mb_left) {
var _dir = point_direction(x, y, mouse_x, mouse_y);
x_move = lengthdir_x(fish_speed, _dir);
y_move = lengthdir_y(fish_speed, _dir);
image_angle = _dir;
}
//slowdown
x_move = lerp(x_move, 0, .1);
y_move = lerp(y_move, 0, .1);
//apply movement
x += x_move;
y += y_move;