lampe-games / godot-open-rts

Open Source RTS game made in Godot 4
https://lampe-games.itch.io/open-rts
MIT License
593 stars 79 forks source link

Attack move is missing #106

Open lmorao opened 7 months ago

lmorao commented 7 months ago

Hi,

Unless i missed something, the actions functionality is missing the "Attack Move", like in old games when you press "A" and the cursor turns red, and if you click on the ground somewhere the units will move towards that direction but if they find an enemy along their path, they will start attacking the enemy.

For example on https://classic.battle.net/war3/basics/unitcommands.shtml Section: "Attack and Attack-Move" " (...) If you target a location, your unit will move to that destination, attacking any enemy units along the way. (...)

If you select Attack and click on an area, rather than a unit, the forces will "Attack-Move" to the area you clicked on, automatically engaging any enemy units or buildings that come into their range on the way to their destination. They will not react to any units that they are unable to attack.

Attack-Move is by far the safest way to move units from one location to another. If you use the Move command instead, your forces might walk through an enemy ambush, and instead of returning fire they will continue on while they are being attacked. This is only desirable in certain instances better explained in the Move command section. Basically, Attack-Move can be considered the same as a "search-and-destroy" order, and is the easiest way to clear out towns and allow your troops to deal with unexpected enemies. "

Scony commented 7 months ago

Hi,

this is basically not implemented. I agree this will be a good addition.