Page 1 of 1

click to move bugs

Posted: Sun Jan 09, 2022 11:26 pm
by Pixel_Professional
Im haveing trouble making moba style movement work with a camera but the player is unable to move past a certan part of the map and i cant find whats making it do that.

Re: click to move bugs

Posted: Wed Jan 12, 2022 2:19 pm
by milon
There's a difference between player's x and y and the screen x and y. You're treating those the same, though. Once the click is detected, you need to account for the current camera position (and possibly zoom) to get the actual desired co-ords.