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
236
S
27
G
13
Posts: 1,784
Reputation: 18,329

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
271
S
99
G
70
Posts: 7,267
Reputation: 75,769

Post » Mon Jun 18, 2012 8:59 pm

Ah there it goes. Thanks!
Image
B
236
S
27
G
13
Posts: 1,784
Reputation: 18,329

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
18
S
5
G
3
Posts: 298
Reputation: 5,327

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
271
S
99
G
70
Posts: 7,267
Reputation: 75,769


Return to How do I....?

Who is online

Users browsing this forum: Held, ijust8, NetOne, tetuan, TezlaX and 10 guests