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: 387
Reputation: 2,274

Post » Tue Jul 26, 2016 5:36 pm

The layer offset converted to world xy values, and vice versa.
Image ImageImage
B
171
S
50
G
180
Posts: 8,396
Reputation: 113,986

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
84
S
34
G
40
Posts: 3,032
Reputation: 30,499


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests