PDA

View Full Version : Movement



A Cool Guy
04-08-10, 11:30 PM
Is there any way to temporary switch the controls so all the controls are opposite just for the one room so up is down and left is right and so on.

Meph
05-08-10, 05:07 PM
I used this for MRD

func UpdateRoom_*_*()
{
keyleft = GetKey(KEY_LEFT);
keyright = GetKey(KEY_RIGHT);
SetKey(KEY_LEFT,keyright);
SetKey(KEY_RIGHT,keyleft);
}

I don't think there was anything else.

delta
05-08-10, 05:23 PM
that's pretty much the jist of it. If you want it for more than one room you can set it in the update handler and check it using a variable, but it's essentially the same thing.

A Cool Guy
05-08-10, 07:09 PM
Brilliant thanks guys :)