I have a doubt. Ashley
construct.net/en/make-games/manuals/construct-3/system-reference/system-expressions
CanvasToLayerX(layer, x, y)
Why do we need 'Y coordinates' to convert 'Canvas X' To 'Layer X' Instead of just CanvasToLayerX(layer, x) ?
Wouldn't that be simpler?
CanvasToLayerX(layer, x)
Every time I actually used it, I had to enter a lot of tedious extra work.
CanvasToLayerX("HUD", LayerToCanvasX("World", Sprite.X, Sprite.Y), LayerToCanvasY("World", Sprite.X, Sprite.Y)) CanvasToLayerY("HUD", LayerToCanvasX("World", Sprite.X, Sprite.Y), LayerToCanvasY("World", Sprite.X, Sprite.Y))
CanvasToLayerX("HUD", LayerToCanvasX("World", Sprite.X)) CanvasToLayerY("HUD", LayerToCanvasY("World", Sprite.Y))
Develop games in your browser. Powerful, performant & highly capable.
Pure guess, but possibly works with the canvas rotated.
Yep, you need both components to handle rotation, as well as to properly handle 3D views. (In fact for that you need three components, which the expressions in 3D Camera use.)