Posting an example here how to create custom UI on screen(HUD) and an example of how you can code a movement system using keyboard keys(Along with TPC).
EDIT: Updated the map with better HUD(Target frame is in now). Smoother movement system(Along with mouse control). And added a basic way to create a custom attack system(Tho thats just experimenting).
To use:
Left Click - Just rotates the camera around the hero without him following its angle.
Right Click - Rotates the camera around the hero forcing him to always run in its angle.
Selecting a Unit - Shows it in the Target Frame(Still no proper portrait just a placeholder) and if its an enemy it will start the attack. To attack it you just need to be withing given range(in this case 1.5).
Due to locking the camera to prevent moving it out of focus for the hero you can use the mouse scroll to zoom only when you are holding one of the mouse buttons.
EDIT: Updated the map with better HUD(Target frame is in now). Smoother movement system(Along with mouse control). And added a basic way to create a custom attack system(Tho thats just experimenting).
To use:
Left Click - Just rotates the camera around the hero without him following its angle.
Right Click - Rotates the camera around the hero forcing him to always run in its angle.
Selecting a Unit - Shows it in the Target Frame(Still no proper portrait just a placeholder) and if its an enemy it will start the attack. To attack it you just need to be withing given range(in this case 1.5).
Due to locking the camera to prevent moving it out of focus for the hero you can use the mouse scroll to zoom only when you are holding one of the mouse buttons.
Attachments
Last edited: