When making a key-controlled game, you need to use different JavaScript coding.
What I mean is, use both "event.keyCode" and "event.which". Because Firefox and Opera use "event.which". I knew all along that there was a way to make key controls be supported in all browsers, but I never actually went to w3schools to check it out.
Killbot, my game, doesn't work in Firefox or Opera because I used "event.keyCode". No "event.which". So that's why Firefox doesn't support it.
Just a tip. Probably useful.
No comments:
Post a Comment
Please keep your comments appropriate.