Disable/Enable MouseKeyboard

This forum is currently in read-only mode.
  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)