So i’ve been playing a lot of RTS games, mostly ones where you have squads of units and they can be commanded to travel, or attack.
Getting the units to follow commands is clearly possible, but how do I get them to move there? Avoiding obstacles and finding the fastest route, or stopping halfway because they got attacked.
I just don’t see it happening in Flowlab.
So my examples that Galactian linked have more efficient code, but as well if you want a more RTS focused example you might look at the “RTS Test” level in this game:
You can Right-Click and drag to select units and then Left Click to set their target location. Only the green, orange, and purple units have pathfinding abilities.
I’m using one of them and it says “Tap to move” But they just a move a little bit. I really wanna know if you can make the player go to where you tap, because in this example the player just goes towards the mouse.