wierd ...

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
User avatar
turshija
Posts: 127
Joined: Sat Feb 17, 2007 9:26 am
Location: Novi Sad, Serbia
Contact:

wierd ...

Post 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 ? :)
User avatar
jph_wacheski
Posts: 1005
Joined: Sat Feb 16, 2008 8:10 pm
Location: Canada
Contact:

Post 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
iterationGAMES.com
User avatar
turshija
Posts: 127
Joined: Sat Feb 17, 2007 9:26 am
Location: Novi Sad, Serbia
Contact:

Post by turshija »

thanks ... :)

i don't know, I've tried all the character codes separately and it didn't work, now its working ... :)
User avatar
turshija
Posts: 127
Joined: Sat Feb 17, 2007 9:26 am
Location: Novi Sad, Serbia
Contact:

Post by turshija »

oh, I know !
I had space (" ") in Keys, thats why my CharCodes weren't working ! :)
User avatar
jph_wacheski
Posts: 1005
Joined: Sat Feb 16, 2008 8:10 pm
Location: Canada
Contact:

Post 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.
iterationGAMES.com
User avatar
VilleK
Site Admin
Posts: 2277
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

I'm glad you solved it. Great avatar you got there turshija!
Post Reply