Event upon Releasing a Key? Is this possible?
There is a command that allows an Event "Upon pressing a key". Is there a way to have a second Event execute when the key is then released? I am helping my 10-yr old son with this and he knows more than I do, so please keep it VERY SIMPLE.
We basically want to have an object go up while the key is pressed then immediately fall once the key is released. Right now my son has figured out how to get the object up using a Motion Path and the press key command. We figured the easiest way to get it down, is to use an opposite motion path, but it has to execute when the key is released.
Any alternative suggestions are welcome. Thanks.
Re: Event upon Releasing a Key? Is this possible?
Add a new event that says
Repeat while Key is pressed
Only one action when event loops
---Use opposite motion path
Then right click on the first condition, the repeat one. Click negate, and a red X should appear beside it. This means it will occur when you are not pressing the key.
Re: Event upon Releasing a Key? Is this possible?
I think the "Key Object" extension allows you to check for key states too
Re: Event upon Releasing a Key? Is this possible?
Quote:
Originally Posted by bigredron
I think the "Key Object" extension allows you to check for key states too
So long as you use the window control object to limit it to when the window has focus. ;)
Re: Event upon Releasing a Key? Is this possible?
Jacob,
We tried the "negate" feature and got the motion to work as we wanted.
Thanks!