Layer Scaling breaks mouse tracking?

0 favourites
  • 3 posts
From the Asset Store
Weather Wind Sounds - Mountains contains 10 tracks (3 tracks and 7 seamless loops)
  • So I'm making a 2d RPG Shooter.

    During the boss fights I generally scale the layers to 0.5 because the bosses are big.

    For some reason this makes the bullets go in the wrong direction. The bullets on fired go to the cursor. But when the layers are scaled to 0.5, they go in random directions. Sometimes they'll go the opposite, sometimes they'll go the right direction but way too low or high.

    This only happens when the layers are scaled, how do I fix it? I'd really like to keep the layers scaled.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Are you using

    bsoluteX

    AbsoluteY

    Return the position of the mouse cursor over the canvas area in the HTML page. This is (0, 0) at the top left of the canvas and goes up to the window size. It is not affected by any scrolling or scaling in the game.

    or Mouse.X and Mouse.Y?

  • Mouse.x

    Mouse.y

    Guessing I should use absolute?

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