Topdown : How can i find the distance between pawn and mouse cursor
hello i hope you guys can help me out iam pretty new to this blueprint gameplay coding i use to make assets now going to try to make a little game for myself :D try to be my own game designer.
how can i find the distance from my pawn to my cursor. iam using top down template what iam trying to do is to make it walk if u clicking close to the character or els the character runs i hope you guys can help me out
sry if this is a noob quistions
thanks in advance cheers
the video here : https://www.youtube.com/watch?v=v0r_1N8tBko
this is how i got the length from my character and mouse cursor seem to be working iam absolute new to this blueprint code so if u have a better way todo this please be kind to share :D thanks agian for the responds
Follow my graph,
This will give you what you ask for.
answered Jun 18 '18 at 03:28 PM
Hi， From my point of opinion.
Now you have got your world location and your clicked location, you can use this node（I‘m not sure if it’s this word，my nature language not English ）
Link the two position，and it can calculate the length.
Follow this question
Once you sign in you will be able to subscribe for any updates here