I just made this little example, showing how to do simple tank movement that leaves tracks behind.
I used image points to place the track sprites.
Hope someone finds it useful.
Thanks, works nice.
There's a condition in the rts behavior called "object is moving" that might simplify things.
That is is if you want to use that behavior.
Develop games in your browser. Powerful, performant & highly capable.
I was looking for something like that, but I didn't expect it to be in a behaviour. Finding out if something is moving seems like a pretty standard thing to me. It should be in the standard list of conditions.
Plus, I wanted to spawn the tracks at a different rate depending on whether the tank is moving forwards, backwards, or turning (these things happen at different speeds).
I know it's not the most elegant system - I really did knock it out it 15mins. I'd love to see how other people solve the same problem.
I agree, "is moving" would be quite helpful for for a lot of things.
"Is Moving" is very simple to implement - just evaluate whether X or Y has been changed.