- Home /
Question by
Nightcrouser · Nov 17, 2018 at 09:00 AM ·
movementmousebeginneranglemouseposition
Get general direction of mouse/tap location relative to player on mouse click?
Hello. Im trying to figure out movement with the mouse. Getting a general direction or area relative to the player where the mouse was clicked (up, down, left, right) and make the player move in that direction But, ive hit a wall, heres the script that ive done so far: https://pastebin.com/UYtFPYkA I cant figure out why its not detecting the ''left'' side of it, and when you remove the line for that side - all of it gets messed up in some ways What have i done wrong here exactly? And if theres a better ways/methods to get what i want?
Comment