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
49
S
9
G
4
Posts: 425
Reputation: 7,037

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
66
S
22
G
14
Posts: 1,484
Reputation: 16,511

Post » Wed May 01, 2013 10:45 am

Thanks so much Yann. That did the trick.
B
49
S
9
G
4
Posts: 425
Reputation: 7,037


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests