LayerToCanvas not work in scale modes?

Get help using Construct 2

Post » Tue Apr 23, 2013 3:52 pm

Hi Everyone,

I need to make a crosshair (on a nonscaling, non paralax UI layer) that can stay perfectly locked on to(put itself perfectly on top of) objects which can each be on any of the other layers...and each layer has a different scale and parapax amount.

I thought I had it by using LayerToCanvas, but this only works with the projects "Fullscreen in Browser" mode set to "off". Any of the scale modes, the crosshair no longer lines up with the objects that its "locked onto"

Can anyone help make t his work?

Here's my capx:
LaterToCanvas Issue
B
45
S
8
G
4
Posts: 414
Reputation: 6,805

Post » Tue Apr 23, 2013 4:33 pm

You just have to project it back from canvas to the UI layer.

crossLayerProjection.capx
Last edited by Yann on Sun Sep 14, 2014 7:18 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Wed May 01, 2013 10:45 am

Thanks so much Yann. That did the trick.
B
45
S
8
G
4
Posts: 414
Reputation: 6,805


Return to How do I....?

Who is online

Users browsing this forum: spcsmrf and 14 guests