Layer Scaling breaks mouse tracking?

Get help using Construct 2

Post » Thu May 30, 2013 11:32 pm

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.
B
3
Posts: 7
Reputation: 241

Post » Thu May 30, 2013 11:36 pm

Are you using

[quote]AbsoluteX
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.[/quote]

or Mouse.X and Mouse.Y?
B
37
S
11
G
6
Posts: 962
Reputation: 11,254

Post » Thu May 30, 2013 11:37 pm

Mouse.x
Mouse.y

Guessing I should use absolute?

B
3
Posts: 7
Reputation: 241


Return to How do I....?

Who is online

Users browsing this forum: NN81, Yahoo [Bot] and 4 guests