So I recently noticed this "demo" by ssj4justdale;
http://www.byond.com/developer/Ssj4justdale/diagnolmovement
It is supposed to be a way to allow diagonal movement using the four arrow keys. Of course, it doesn't work at all, for pretty obvious reasons if you look at the code.
I wasn't originally trying to tackle this problem, I just saw the demo and thought it would be a nice feature in my current project. My question is, has anyone demonstrated a working way to accomplish this? I'm not going to get into pixel-based movement. I was wondering about the ability to detect if a key is held down instead of just 'pressed' ... I didn't think there were built in functions for that.
Any thoughts?
ID:155933
Feb 1 2011, 12:34 pm
|
|
In response to Tubutasx1
|
|
Ah that makes total sense!
Thanks for the info, doesn't seem like such a quandary any more :) |
Then you need a some the keyup and keydown verbs and make the macros.
then handle the keys.