Page 1 of 1

Keys are not working as expected (resolved)

PostPosted: Thu Jan 13, 2011 5:27 am
by maze
Hi, I'm having an issue with the keys in Edward. The key that's named "KEY_A" works for the teleport that's named "KEY_A". But in the next frame the key that's called "KEY_B" does not work for the teleport that's called "KEY_B". I can't seem to get rid of KEY_A's influence in the next frame and so then KEY_B doesn't work. Is there a way to turn off a key's influence? If someone could help me with this, then I would appreciate it.

Update: I now know what the problem is. You have to change this code in order for all the keys to work:
line 850: replace keysOwned[i] with keysOwned[k]
line 882: replace keysOwned[i] with keysOwned[k]
line 892: replace keysOwned[i] with keysOwned[k]