How do I have the layout scale and mouse line up?

Get help using Construct 2

Post » Wed Aug 06, 2014 3:27 pm

When I was making my action game I had it so when there is boss fight, the layout scale changes from 1.0 to 0.5 (zooms out). When the layout scale changed, the object (that every tick set angle to the mouse) had an offset-ish, angle, it's hard to explain so I have an example project here.
You do not have the required permissions to view the files attached to this post.
B
15
S
5
Posts: 19
Reputation: 1,133

Post » Thu Aug 07, 2014 4:30 am

Set angle toward (mouse.x("Layer 0"), mouse.y("Layer 0"))

Read toward the bottom of this manual entry if you'd like to know why:
https://www.scirra.com/manual/114/mouse
B
88
S
43
G
71
Posts: 601
Reputation: 43,669


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests