Mouse movement independent of cursor position?

  • Hi! I'm trying to implement direct mouse controls, eg. when the mouse is moved left, the character moves left, etc.

    However, I want to do this with a limited speed, so my first approach was storing Mouse.AbsoluteX and Mouse.AbsoluteY each tick and comparing the next to see if the mouse was moved, then move the character with my fixed speed, all while hiding the cursor as "none".

    Well, I guess I should have predicted that this approach breaks down when the invisible cursor hits the border of the window/screen, but the character is still somewhere in the middle due to their slower speed.

    Is there any way to check the mouse movement directly (disregarding of cursor coordinates), or maybe somehow influence the cursor position or speed, in Construct 2?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)