Here's my problem. Some of my students are doing a game where guards are patrolling along a path, but if the alarm sounds they should run according to a new path.
First we useed the folloing code (for the new path):
Code: Select all
set the movePolygonal["pointList"] of guard[1] to the loc of guard[1] & return & newPointList
Even if we reset the "isDistance" we get (alomost) the same result
what works most of the time is to do the following:
Code: Select all
set the movePolygonal["pointList"] of guard[1] to empty
send "movePolygonal" to guard[1]
set the movePolygonal["pointList"] of guard[1] to the loc of guard[1] & return & newPointList
So, is there any way to "reset" the movePolygonal to force it to start from scratch of the new path?