Tank tracks example

Post your own tutorials, guides and demos.

Post » Wed Feb 04, 2009 8:09 pm

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.
B
2
S
2
G
3
Posts: 105
Reputation: 1,510

Post » Wed Feb 04, 2009 8:38 pm

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.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Wed Feb 04, 2009 11:47 pm

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.
B
2
S
2
G
3
Posts: 105
Reputation: 1,510

Post » Thu Feb 05, 2009 12:07 am

I agree, "is moving" would be quite helpful for for a lot of things.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Thu Feb 05, 2009 8:12 am

"Is Moving" is very simple to implement - just evaluate whether X or Y has been changed.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest