by DST » Sat Jun 07, 2008 5:30 am
Use collision, cloneindex, and array.
make all points clones of point, then reference ball's xy from the clones.
Use an array: integer, global, Size = max# of points.
make two of them, pointx, and pointy.
On point>createactor or on mousebutton up (if you can drag them after placing them)
pointx[cloneindex]=x;
pointy[cloneindex]=y;
and on ball>collision with point
angle=direction(x, y, pointx[collide.cloneindex+1], pointy[collide.cloneindex+1]);
Now ball will always go for the next point's xy from the one its touching.