5 replies [Last post]
BlueGriffon
BlueGriffon's picture
User offline. Last seen 1 year 22 weeks ago. Offline
Joined: 09/13/2009
Posts: 68

I'm trying to write a wizard to create a pair of commands to allow a Jump command that works alot like the Halt command... to keep elevatoring up while the spacebar key is pressed.

The end resulting GCP commands I want is:

Command: Jump-All-Press
Key: Space bar down

<<All>>
Press {Space}

Command: Jump-All-Release
Key: Space bar up

<<All>>
Release {Space}

I think I've got it figured out... except for the Key assignment... what do I use on the #Key line to indicate space bar?

Here's the content of the wizard so far:

#Command Jump-All-Press
<<All>>
Press {Space}
#Keydown Spacebar
#EndCommand
#Command Jump-All-Release
<<All>>
Release {Space}
#Key Spacebar
#EndCommand

Except the "#Keydown" and "#Key" commands don't give me what I want. I've tried Space, Spacebar, and {Space}. None work.

Edit: Or this question irrelevant? Does the beta version 2.0 pass-through the spacebar key press (if I use the cloning ability)?

Jeremy
Jeremy's picture
User offline. Last seen 1 year 25 weeks ago. Offline
Joined: 06/14/2009
Posts: 268
So it is literally a space "

So it is literally a space " ". You could try just putting two spaces after the #Key. If that doesn't work though I will add {Space}.

__________________

GameCommanderPro Graphics Designer / Software Engineer

VonHenry
VonHenry's picture
User offline. Last seen 1 year 51 weeks ago. Offline
Joined: 11/20/2009
Posts: 45
Same Problem

I had same problem last night.

My Wizard:
#Command PressSpace
<<All>>
Press {Space}
#Key Down
#EndCommand

#Command ReleaseSpace
<<All>>
Release {Space}
#Key UP
#EndCommand

When I then looked, via "View Advanced" the Keys bound were "DOWN UP" for Press, and "UP UP" for space.

Jeremy
Jeremy's picture
User offline. Last seen 1 year 25 weeks ago. Offline
Joined: 06/14/2009
Posts: 268
For now you can just bind

For now you can just bind them manually once the wizard creates the command. I will add a way to bind to space in wizards.

__________________

GameCommanderPro Graphics Designer / Software Engineer

VonHenry
VonHenry's picture
User offline. Last seen 1 year 51 weeks ago. Offline
Joined: 11/20/2009
Posts: 45
Thanks.

Jeremy wrote:
For now you can just bind them manually once the wizard creates the command. I will add a way to bind to space in wizards.

Sorry - forgot to add that that is what I did.
It worked for Jump, didn't get a chance to test for "Swim/Fly" which is what we're really after. Will later tonight.

BlueGriffon
BlueGriffon's picture
User offline. Last seen 1 year 22 weeks ago. Offline
Joined: 09/13/2009
Posts: 68
Thanks Jeremy :)

Thanks Jeremy :)