What is CanvasToLayer and LayerToCanvas?

Discussion and feedback on Construct 2

Post » Tue Jul 26, 2016 5:30 pm

What exactly is the use for the "CanvasToLayer" and "LayerToCanvas" expressions?
B
20
S
4
Posts: 385
Reputation: 2,270

Post » Tue Jul 26, 2016 5:36 pm

The layer offset converted to world xy values, and vice versa.
Image ImageImage
B
168
S
50
G
163
Posts: 8,224
Reputation: 105,067

Post » Wed Jul 27, 2016 12:10 am

I used it to have an object on a non-parallax layer to exactly follow another object which is on a heavily parallax layer. I think this would be the most common/simplest usage.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
80
S
34
G
40
Posts: 3,029
Reputation: 30,393


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests