How exactly do I implement it so whenever I am pressing the Up arrow key, and then press down the right arrow key as well, I go northeast? It seems I can only go up, down, left, and right. I can go , diagonal if I use a numpad and press 9, 7, 1, and 3. Can anyone help?
|
Forum_account's Pixel Movement library uses his Keyboard library. If you don't want to use his Pixel Movement library, you can just as easily use his Keyboard library. You'll probably also want some kind of loop, so you could either use Deadron's EventLoop or my extremely simple loop library. I also find myself using my ProcLib library for some things.
A simple way I've come up with (influenced a tiny bit by F_a and made extremely simple by use of libraries): controls |
Forum_Account's Pixel Movement library will also handle this for you (he also posted in the above thread)