wondering how can i create highlighted region while on topdown camera ingame...
like when a player clicks and drag.. you create a rectangle..
and the thin rectangle is highlighted to a tinted color..
region is also re-nameable..
so, i'm not sure how to do it.
1. when player clicks.. get world location x,y to a variable [startXY]... (not z - because it is topdown)
2. then when player releases the left click.. get world location x,y to a variable - [endXY]
but im not sure how do i do the dragging part.. where theres a visible rectangle as the player drags the rectangle...
and the storing of the area inside the rectangle to a variable.... so i can use it laterlike, this object is only placeable in this region...
or sending a unit to a random point in that area..
and even changing the highlight of the region..
and even renaming it..
like when a player clicks and drag.. you create a rectangle..
and the thin rectangle is highlighted to a tinted color..
region is also re-nameable..
so, i'm not sure how to do it.
1. when player clicks.. get world location x,y to a variable [startXY]... (not z - because it is topdown)
2. then when player releases the left click.. get world location x,y to a variable - [endXY]
but im not sure how do i do the dragging part.. where theres a visible rectangle as the player drags the rectangle...
and the storing of the area inside the rectangle to a variable.... so i can use it laterlike, this object is only placeable in this region...
or sending a unit to a random point in that area..
and even changing the highlight of the region..
and even renaming it..
Comment