RTS Engine 5.0: More Buildings and Units

by lmsp7cm
  scripts
  sprites
See inside
Instructions

**IMPORTANT**
**READ ALL INSTRUCTIONS!**
---------------------------------------------------------------------------------------------------Click on any of the units on the screen.
*Note: If you press and hold your mouse, a box should appear. Move your mouse around, while pressing, to change the box dimensions. Any units inside of the box will be selected.
*Note: The box select feature does not work on the Command Base or any other buildings
-Click anywhere on the screen while a unit is selected. The unit should point and move to the point you clicked.
*Note: The Command Base and War Factory cannot move.
*Note: If you click on a different unit, the unit you previously selected should not move to the newly selected unit.
-Press 'C' while a unit is selected to access the chain movement feature. To use it, press and hold "C" and click on the screen wherever you want. The unit should go to the first place you clicked, then the second, and so on.
-Press 'P' while a unit is selected to access the patrol feature. Press and hold "P" to
*Note: You must be pressing 'P' while clicking to access the patrol feature.
-Press 'S' to stop all movement on all selected units. This also will cancel a building if the miner is moving.
-Press 'M' while a miner is selected to access the mine feature, then click on a Mineral sprite. The selected miners will proceed to move to that patch, will 'mine' it, then will return to the CLOSEST Command Base, increasing your Money by 5. It will keep doing this unless you tell it to do something else.
*Note: You must be pressing 'M' while clicking to access the mining feature
*Note: If you tell it to do something else while it has minerals, just tell it to go back to mining at whatever minerals you want it to. It will start mining again.
*Note: If you are pressing 'M' and you DO NOT click on a mineral sprite, then the miner selected will not mine any minerals.
-Press 'B' while a unit is selected to begin building something. -Press 'C' to build a Command Base. Then move your mouse around the screen. If the color is green, and if the building is in your desired location, press down.
*Note: It costs 400 to build a Command Base
*Note: Press 'X' to cancel the building process. The miner will keep moving to the selected point, but it won't build. If the unit is currently building, you will be completely refunded.
-Press 'F' to build a War Factory. Then move your mouse around the screen. If the color is green, and if the building is in your desired location, press down.
*Note: It costs 150 to build a War Factory
*Note: Press 'X' to cancel the building process. The miner will keep moving to the selected point, but it won't build. If the unit is currently building, you will be completely refunded.
-Press 'M' while a Command Base is selected to build a Miner. This costs 50 to build.
-Press 'W' while a War Factory is selected to build a Warbug. This costs 100 to build.
-Press 'T' while a War Factory is selected to build a Tank. This costs 150 to build.
Press 'X' while a Command Base is selected to cancel a Miner. You will be completely refunded.

-Arrow keys to scroll through the map.
-Press 'space' to jump to the selected unit.

Notes and Credits

This is an engine for anyone who has the hopes of making a decent RTS (Real Time Strategy) game. In this version I added more units and buildings

All of the scripts are mine, except for the progress/health bar, which I got from @thelogfather. I will be making more engines as I start work on my own RTS. These are made to be easy to understand.

Please comment if you have any questions or suggestions!

Everything you need to know should be in the instructions.

So here is what I will be doing for the next version. Remember, all versions later than the one before it include everything from the previous versions.
v6.0- Simpler Processor

Shared: 8 Sep 2016 Modified: 19 Apr 2017
Favorite this project 3
Love this project 4
Total views 33
View the remix tree  1
  
More projects by lmsp7cm