draw shooting range

hey, I’m currently trying to build a tanks shooting game (my first game).
this is how the game is looking:
FirstLook.PNG
so every tank has the max range he can shoot to, I want to draw a red circle around the tank to show the range.
something like that (done with paint):
AddRange.png
but I can’t manage to find out how to do it, I tried to do it with canvas but there is not circle, only a line and with canvas it’s paint under the tank and I want it above the tank.
hope I’m clear enough
here is the entire project if someone want a better look on how the game works:
proj3.rar
and here is a virus check: VirusTotal

Thanks in advance for any help!



2872914–210591–proj3.rar (3.1 MB)

Maybe just draw a circle texture with overlay / addictive shader if this is a 2D top down game.
Or maybe using stencil buffer would help if the terrain is 3D like C&C3 and 4.

1 Like