Cursor problem

Get help using Construct 2

Post » Mon Jun 18, 2012 8:39 pm

Example .capx here

Use Mouse Wheel (Up) To Increase Layout Scale
Use Mouse Wheel (Down) To Decrease Layout Scale

Notice how when the layout scale is different than 1.0, the black tile becomes misaligned with the mouse cursor. This didn't happen in CC - the black tile and mouse cursor would always be on the same grid cell. Any way to fix it?
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Mon Jun 18, 2012 8:43 pm

Use mouse.X(0) and mouse.Y(0)

The parenthesis hold the layer's number and returns the coordinates for this layer according to its scale.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Jun 18, 2012 8:59 pm

Ah there it goes. Thanks!
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Mon Jun 18, 2012 9:34 pm

ok thanks @Kyatric i've miss this syntax feature (with you i learn more every day ;-p)
B
16
S
5
G
3
Posts: 298
Reputation: 5,240

Post » Tue Jun 19, 2012 1:47 am

@naelian:
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791


Return to How do I....?

Who is online

Users browsing this forum: austinblackbelt and 23 guests