Hi everyone,
I think the KeyDelay() function doesn't work properly on Parchment. The behavior that one should have is "wait a certain amount of time unless the user hits a key", but in Parchment it's "wait until the user hits a key". I tested it using both IE and Firefox, so it may be a genuine Parchment bug.
I noticed it on my latest game, "Life On Mars?", that uses heavily those effects: you can see it for yourself by entering "emails" as the first command in
http://iplayif.com/?story=http://ifiction.free.fr/concours2013/lifeonmars/lifeonmars.z5 (then pick any). It's supposed to display the email progressively, but instead it just stops every few letters.
Another person, who found the bug first, made a minimal source code that shows the problem:
[ KeyTimerInterrupt;
rtrue;
];
[ KeyDelay tenths key;
@read_char 1 tenths KeyTimerInterrupt -> key;
return key;
];
Array Alphabet string "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
[ main i key;
for (i = 1: i <= Alphabet->0 : i++) {
print (char) Alphabet->i;
key = KeyDelay(1);
}
@read_char 1 ->key;
];
The results can be tested at
http://auraes.free.fr/parchment/?story=http%3A//auraes.free.fr/ldveh/Game/key_delay.z5.js. The whole alphabet is supposed to be displayed progressively, but instead it just stops after "A".
Thanks!
Hugo