Onde tenho aceleração e velocidade, mas quero colocar movimentação limitada.
usei:
Código: Selecionar todos
friction = 0;
if (instance_exists(target)){
motion_add(point_direction(x, y, target.x, target.y), acc);
if (position_meeting(x, y, target)){
with (target) instance_destroy();
state = 'idle';
}
}
if (speed > spd) speed = spd;