Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
What is the usage of Y coordinate in LayerToCanvasX(layer,X,Y) expression? It seems that the Y coordinate has no effect on the return value of the expression. Same goes to LayerToCanvasY,CanvasToLayerX,CanvasToLayerY.
It is necessary for calculating the correct answer when the layer or layout is rotated, since there is no longer a linear correlation between the axes. If you don't rotate anything though, I think you can ignore it, but you may as well provide it the right value in case you change your mind later.
Develop games in your browser. Powerful, performant & highly capable.
Ahh I see, thanks for the reply!