How do I make C&C style troop movements?

Get help using Construct 2

Post » Sat Apr 29, 2017 1:33 am

Heya

Trying to make a little RTS and I want the troops to be able to move freely through each other, but only have one standing in each tile once they get to their location. Best example of this I could think of are the troops from the original Command & Conquer, where they could walk freely through a group of standing soldiers, but there could only ever be a limit to how many occupy one tile (in that game 5).

Tried looking around the web for best practise with no luck. Even the RTS template on C2 doesn't address this issue as the tanks can occupy each other's space.

So basically, I want troops to be able to walk past each other (so no blocking in terms of pathfinding) but I don't want them to be able to stand in the same tile once they come to rest.

Cheers
B
15
S
4
Posts: 38
Reputation: 951

Post » Sat Apr 29, 2017 6:29 am

I made an attempt.... but failed.

I'm not quite sure why, maybe someone else can fix/finish this.

It kinda does work if you have each event separate rather than in a loop (activate the group, disable the loop). Must be some sort of picking/repicking issue but the answer evades me at the moment.

https://www.dropbox.com/s/tnw6yorql2jio ... .capx?dl=0
Mistakes were made.
B
52
S
26
G
110
Posts: 1,620
Reputation: 62,161


Return to How do I....?

Who is online

Users browsing this forum: Ashley, dop2000, MathNook and 27 guests