Hi, I've tried to debug this for a while but I have no idea what I'm doing wrong. It's probably something really simple.
The extension works fine for the first move, sometimes the second and third moves work as well. After that it goes crazy, and I can't seem to be able to find the problem at all.
If any of you have some spare time, would you mind taking a look? The code is pretty simple.
(Oh, and press "space" after the player stops to move again)