Thanks, although I'll be honest and say that was really just a happy accident.
I have made it faster now, since it was far too slow. But I haven't updated because I'm working on making the actual game attached to this. Starting with making the enemies actually aware of the player's existence...