How to stop the Waypoints

13 views
Skip to first unread message

KS Lam

unread,
Dec 28, 2013, 11:27:32 AM12/28/13
to fantom...@googlegroups.com
Hi Michael,
Waypoints example in the FantomGL, I try to stop the car after a round by adding 

marker.path.Remove() in Method OnMarkerCircle:Int(marker:ftMarker, obj:ftObject),

but got runtime error "Memory access violation" in cftWaypoints - Method GetWPCount.

I debug in Desktop game mode.

What is the proper way to stop the waypoint ?

Pls see the attachment file of the error.


Thank you.


Regards,

Lam

Screen Shot 2013-12-29 at 12.20.45 AM.png

Michael Hartlef

unread,
Dec 29, 2013, 7:01:46 AM12/29/13
to fantom...@googlegroups.com
Did you wanted to remove one waypoint of the path or a marker, which attaches an object to a path?

In case of removing the marker, to stop the object moving along a path, use

marker.Remove()

and use this updated cftWaypoints.monkey file which I have attached.
cftWaypoints.monkey

KS Lam

unread,
Dec 29, 2013, 9:15:32 AM12/29/13
to fantom...@googlegroups.com
I want the car stop at the end of the path.
U have solved my problem. Thank you.
Reply all
Reply to author
Forward
0 new messages