For all who are interested:
I am writing a shoot-em-up game and I needed to design flight patterns for my enemy ships. It's kind of like a waypoint system where they would move into the play area past the top of the screen, moveto point A, moveto point B, moveto point C etc... until it moves to outside the screen again past the bottom.
However, the moveto plugin kept on triggering true on the condition "On MoveTo Hit Target", which is what I didn't want. So I made a small modification on line 105 of runtime.js:
Instead of this:
if ( (this.remain_distance <= 0) || (this.current_speed <= 0) )[/code:3hn30p3n]
[code:3hn30p3n]if (this.remain_distance <= 0)[/code:3hn30p3n]
I sure don't need "current_speed <= 0" to be true. Just wanted to share is all... it might help those who want such a waypoint feature.
Or maybe it's an error? Not sure, that's for
rexrainbow to comment.