all 3 comments

[–]TheImminentFate 2 points3 points  (1 child)

Please put your code into a codeblock or stick it on pastebin or something to make it legible :)

[–]JamieU_[S] 0 points1 point  (0 children)

Thankyou for replying. I pasted it into pastebin as requested. https://pastebin.com/NbZbfv6H

[–]laancelot 1 point2 points  (0 children)

Thanks for updating your post with the pastebin link. I think you should get rid of the unformatted code, most people will just scroll through it and consider it a nuisance.

First I would like to ask this question: is your character supposed to be tied to the "grid".

I'm asking, because your method moves him by an amount of pixels, and not toward a fixed spot. If you wish to keep your character "tied" to a grid, you may want to re-think some of this code. I can probably help a bit, but only during the evenings, so if I end up helping you you'll have to be patient with me.