- Home /
Click and move interface
hello, i need a click and move function i know i can get the click and move script from unity wiki but thats not what i was looking for, in RuneScape when you click and move you move to a square, you would know this if you looked in to runescape enough :p but if you don't ill try and explain. i need it so that basically i have a floor made of may different cubes, once i click on a certain cube the player would move to that cube then if i click another random cube the player would move to that cube and so on and so forth, i tried coding it myself but i can seem to get it right i tried OnMouseEnter,, OnMouseDown,, boolean,the hole Vector3.Lerp(transform.position,Cube.position Time.deltaTime Speed) but it didn't work :/ so i was wondering if anyone could help.
Thanks.
Your answer
![](https://koobas.hobune.stream/wayback/20220613073031im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why doesn't my script work? 1 Answer
I'm trying to make a zoom by changing the scale of the object and need constraints 1 Answer
Click To Move Character Walks Straight Through Objects 1 Answer
help with movement along x axis and slow down. please help 1 Answer
Why isn't this script working? (Beginner in coding) 2 Answers