Disable/Enable MouseKeyboard

For questions about using Classic.

Post » Sun Feb 20, 2011 7:06 pm

Is there an action for the MouseKeyboard object where you can enable/disable this object?
There are many actions which involve enabling/disabling stuff in Construct, but I can't seem to do it for something so simple like the MouseKeyboard object.
Thanks.
B
5
S
1
G
3
Posts: 59
Reputation: 993

Post » Sun Feb 20, 2011 7:29 pm

For behaviors like platform and 8direction you can set "ignoring input". For MouseKeybord there is no action for disabling it.

But if you add MouseKeyboard to a container with another object that can be destroyed, then the Mousekeyboard can be destroyed, effectively disabling it. To re-enable just create a new MouseKeyboard, but be sure to only make one.

A better solution would be to use a global variable comparison with all your keyboard events:
ex:
+ System: Is global variable 'MouseKeyboardaActive' Equal to 1
+ MouseKeyboard: On key Enter pressed
B
79
S
24
G
54
Posts: 4,747
Reputation: 40,757


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests