Put your pawns in a pawnsfamily
board tiles should have origin point in the middle
add pawnsfamily instance variable: targetx,targety
on click targettile, set the pawnsfamily variable for the active pawn
targetx = targettile.imagepointX(0)
targety = targettile.imagepointY(0)
event:
for each pawnsfamily
sub:
compare 2 variables
distance(pawnsfamily.X,pawnsfamily.Y,pawnsfamily.targetx,pawnsfamily.targey) > 5
action: move pawns family at
angle: angle(pawnsfamily.X,pawnsfamily.Y,pawnsfamily.targetx,pawnsfamily.targety)
pixels: 50*dt