Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | fhgaha |
I try to make a global strategy game with weird-shaped provinces as Paradox has. So I want to lite up an area if I hover the cursor on it.
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | fhgaha |
I try to make a global strategy game with weird-shaped provinces as Paradox has. So I want to lite up an area if I hover the cursor on it.
Reply From: | kidscancode |
Your CollisionPolygon2D has a polygon
property. You can use that value to
polygon
property of a Polygon2Dor
draw_polygon()
Yes
$Polygon2D.polygon = $StaticBody2D/CollisionPolygon2D.polygon
fhgaha | 2021-05-21 14:42