Cita de: Texic en Junio 22, 2012, 11:27:18 PM
vx=x-xprevious
vy=y-yprevious
act=0
with (other) {if place_free(x+vx,y+vy) {other.act=1}}
if act=1 {
other.x+=vx
other.y+=vy}
Probá algo así, no estoy con muchas luces hoy pero debería funcionar
Me da error. Me dice que las variables "vx" y "vy" no existen. Es necesario poner esas variables en el create? ;)