Godot Version
4.4
Question
` im trying to click to move movement system with my new project. a little video.
https://streamable.com/qkcopn
character can leave a line behind it, but what i wanna achieve is, before the “click” to “move” when player click the move button and a half transparant version of the player sprite shows up,
between that sprite and orjinal player i wanna draw a line, like telling to player “you can move there”.
And i want to use the navigation agent to do so, because only paths can be walk will be in the navigation mesh. so only posibile patsh that player will see is in the navigation mesh. so i thong why not use navigation agent for this too, its a briliant idia !!! .over 6 hours, i did try many things, can’t have the any result that solve this.
bdw i dont know if this is a bug, but im geting noting retrun from the navigation_agent.get_current_navigation_path()
i think, if i can get navigation_agent
calculate the path that from player
to current_mause_pos
i can use that points to draw a line, but let alone doing that,
i cant even draw a line from player
to current_mause_pos
, godot do not let me draw outside of the _draw
function,
i cant use the line.draw_line(vector2,vector2,color)
so yeah, my mind right now like a mushy mushroom, after hours of this problem, and i wanna ask here if there is a solution for this?
`