Page 1 of 1
wierd ...
Posted: Wed Jul 09, 2008 11:39 am
by turshija
Maybe I'm stupid/blind or whatever, but I somehow can't find possibility to add "Enter" in KeyPress ... I'm pretty sure Carriage Return is code 15, but when I set CharCode 15, it simply doesn't work ...
I haven't tried using CharCodes in ZGE before, maybe I'm doing something wrong, any help ?

Posted: Wed Jul 09, 2008 12:26 pm
by jph_wacheski
Code: Select all
ZZDC<?xml version="1.0" encoding="iso-8859-1" ?>
<KeyPress Comment="press ENTER" CharCode="13"/>
here just cut and past it!
It is CharCode 13,. and when you use the numbered codes inplace of regular Keys you must leave the Keys feild BLANK.
Ville did add the main ones here;
http://www.zgameeditor.org/index.php/Co ... f/KeyPress
Posted: Wed Jul 09, 2008 12:36 pm
by turshija
thanks ...
i don't know, I've tried all the character codes separately and it didn't work, now its working ...

Posted: Wed Jul 09, 2008 12:48 pm
by turshija
oh, I know !
I had space (" ") in Keys, thats why my CharCodes weren't working !

Posted: Wed Jul 09, 2008 12:54 pm
by jph_wacheski
yeah I did the same thing,. drove me knuts for a few minuets,. .
Deleting the components and rebuilding them will, in this case, have fixed it,. as you can't really see a 'space' unless you go to the feild and move the cursor about. Sometimes you just gota rip out parts of your structure to get things working again,. In scripting i often have a : in place of a ; and that drives me to madness as well,. we are dumb monkeys eh.
Posted: Wed Jul 09, 2008 2:03 pm
by VilleK
I'm glad you solved it. Great avatar you got there turshija!