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 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
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.
hi thanks for answar
i found out the way to get the length so i can use it to control the speed. i will try to use path length and see what i can do with it thanks agian really appreciated thanks
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
thanks agian for the responds
It’s quite simple. It projects the world position of your actor on to the screen and calculates the distance from your mouse cursor and the projected position in screen space.
Regards,