ya I saw that, but it won't work in this scenario.
Basicly, my character will run while I have the w or s keys pressed, but I want an animation and a few functions to run when I release the w or s keys. The problem is, that if I just state:
if (key_w == 0) || (key_s == 0)
{
do this;
then this;
}
what will happen is that it will do it whenever they are not pressed. So I need a way to say, "if I just released this button, do this".
key_lastpressed is nice, but I don't see how that could work for me in this situation.