Get Source code 

from Godot official assets : http://godotengine.org/asset-library/asset/575

from my GitHUB :https://github.com/LeProfesseurStagiaire/rtsSelectionMoveDemo

About

A simple GODOT demo to test selection and move with units like in RTS games. You can also choose a formation shape for your units and some others parameters.

Set up the demo in GODOT

  • Open Godot
  • click on 'import' and choose the "project.godot" file on the project folder
  • Them you have access to the project edition, press F5 to launch project !

In game inputs

  • Left click :
    • Drag to expand a shape to select units.
    • Click on the UI to change parameter in runtime.
  • Right click : Move the selected units around your cursor position.

Content

Selection

In this demo, you can select units with some Control nodes and an Area2D. The esthetic as been customed with the theme asset. When selected, units are changing they underline color.

Movement

You can also move your units with a path finding system managed by an auto tiled Tilemap. In the ui, you can click some button to change your unit formation shape (square, circle or triangle).




Test with parameters

It is possible to change the number of unit that spawn from the code of the demo.



Download

Download NowName your own price

Click download now to get access to the following files:

rtsSelectionMoveDemo_lin.x86_64 39 MB
rtsSelectionMoveDemo_win.zip 14 MB

Leave a comment

Log in with itch.io to leave a comment.