Thread:Randomouscrap98/@comment-5106053-20140805195949/@comment-5106053-20140805223929

Well that really does shorten the code, but the only problem I have with doing that for the diagonals is that moving diagonally will actually be slightly faster than moving straight, to be precise the sprite would be moving at a speed of sqrt(2). So I used SIN and COS to solve that, but figuring out the angle with all those IF statements seems kinda inefficient. I suppose maybe doing something like IF(BUTTONAND 5)==5THEN X=X-SQRT(2)/2:Y=Y-SQRT(2)/2 would work, but I'm not sure if that would be any better.