KeyDelay() bug?

6 views
Skip to first unread message

hugo.l...@gmail.com

unread,
Jul 29, 2014, 5:47:05 AM7/29/14
to parc...@googlegroups.com
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

Dannii Willis

unread,
Jul 29, 2014, 7:15:10 AM7/29/14
to parc...@googlegroups.com
Yeah, unfortunately timed input isn't supported yet. I have no immediate plans to add it either, but hopefully eventually!

hugo.l...@gmail.com

unread,
Jul 29, 2014, 9:52:57 AM7/29/14
to parc...@googlegroups.com
Ah, I didn't know that. Thanks for the info! It's a shame, since it makes my game unplayable, but oh well :)
Reply all
Reply to author
Forward
0 new messages