Do you wish to build houses in your Strategy-Game? Then this is what you need:
Building Script You can include it very simple to your project. All what you need is a panel or a unit on which you can select what you wish to built. The script is very easy:
If you click on a button on your build panel a function starts, which makes sure that you've enought ressources (wood/stone, you can add more) . Then begins a build mode, in which the selected building follows your mouse, until you click right to place the building.
Games which use something like thath:
Command and Conquer
Warcraft 3
Deutsch:
Wollt ihr Gebäude in eurem Strategie-Spiel bauen? Dann braucht hier das hier:
Building Script Der Script ist leicht in das Projekt einzubinden. Alles was man noch braucht, ist ein Panel oder eine Einheit um auszuwählen, was man bauen will. Der Script funktioniert ganz einfach :
Wenn man auf einen Button in dem Bau-Menü klickt, überprüft eine Funktion ob genüend Ressourcen vorhanden sind. (Holz/Stein, können mehr hinzugefügt werden)Dann beginnt ein Bau-Modus, indem das ausgewählte Gebäude der Maus folgt bis die rechte Maustaste gedrückt wird, dann wir das Gebäude gebaut.
Spiele in denen so etwas vorkommt:
Command and Conquer
Warcraft 3