I'm trying to use WASD as movement keys instead of the arrow keys. My code is below. Arrow keys are working perfectly but i"m not getting any response from WASD. Any suggestions?
if button_down? Gosu::KbLeft or button_down? Gosu::KbA then
if button_down? Gosu::KbRight or button_down? Gosu::KbD then
if button_down? Gosu::KbUp or button_down? Gosu::KbW then
Probably keyboard or system fault. Have you tried only WASD in the code? (it won't change anything, but check just in case)
It never fails, right? As soon as I make an account and try to post for help, I realize the human error. I was editing a copy of the file and not the one I was running through the console.
I appreciate the response none the less.
Well, this happens.
I remember my programming classes:
-Why this won't work?!
-You have to save first, you know...
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill