Using the caps lock key?
SnapFireStudios
Member Posts: 1,603
Hey,
Thinking about some ideas for my next game, 'Key'.
So if I make a rule that asks if the caps lock key is pressed, is this toggled? In what way?
I actually kind of hope it is. It'd add a cool dimension to it.
Thanks,
- Thomas
Thinking about some ideas for my next game, 'Key'.
So if I make a rule that asks if the caps lock key is pressed, is this toggled? In what way?
I actually kind of hope it is. It'd add a cool dimension to it.
Thanks,
- Thomas
Comments
Hi @SnapFireStudios Yes, this can be toggled as such:
Rule: When actor receives event key caps lock is down
-----your behaviours
Otherwise
------different behaviours
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
- Thomas
The behaviours will stop once the caps lock is up (and run any different behaviours within that, if there are any), providing the behaviours used are interruptible (unlike Interpolate, for instance, which would need a workaround).
A small test:
Display Text scene.Count
Rule: When actor receives event key caps lock is down
Timer Every 1 second ---- run to Completion off
Change Attribute Count to Count+1
Otherwise
----nothing
When the caps lock is pressed, the number "Count" will start counting up, but as soon as the caps lock is unlocked, i.e up, it'll stop. Is that the sort of thing you mean?
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
- Thomas
- Thomas
I'll see if I can find the gamefile I did... (or the thread where it was discussed, I seem to remember there were other solutions too)... give me a few mins....
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
There you go, @SnapFireStudios, hope you find it useful:
"Is there any way to stop an Interpolate once it has started?" >>>
http://forums.gamesalad.com/discussion/comment/361704/#Comment_361704
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
- Thomas