Ignore mouse input/animations

This forum is currently in read-only mode.
From the Asset Store
Total customisation of the input! You can combine inputs from all peripherals. Make your game accessible for everyone!
  • I would like to ignore all mouse input, so that I can ignore all animations (which start by a pressed mouse button).

    I have tried the following:

    start of layout

    *choose object mousekeyboard*, but no option to ignore mouse-input there, as action.

  • Use a global variable as a toggle and check whether it is activated or not. You can toggle it with events, key press or whatever whenever you want the stuff to ignore mouse.

    +'IgnoreMouse' = 0

    +Mouse button is pressed

    blah blah

  • Use a global variable as a toggle and check whether it is activated or not. You can toggle it with events, key press or whatever whenever you want the stuff to ignore mouse.

    +'IgnoreMouse' = 0

    +Mouse button is pressed

    >blah blah

    But I have no means to de-activate the mouse-button-control.

    Perhaps I don't see what you mean.

    When mouse button is pressed, an animation starts.

    At a certain point I want to ignore key presses (or: not start animations).

    Both options (ignore mouse-buttons, don't start any animation) are not present in the event's action list.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Mipey's suggestion would work, change IgnoreMouse to 1 and the event stops running. Or, put all the events in a group, and disable the group when you want the events to stop running.

  • Couldn't you just use "animation is playing" inverted, along with the on click event in the condition?

    So it would be like:

    MouseKeyboard: On Left mouse button Clicked

    Sprite: Animation "Default" is not playing

    SpriteSet animation to "Default"

  • Thanks for the suggestions. I've tried it out.

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