Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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.
Develop games in your browser. Powerful, performant & highly capable.
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.
Ahh I see, thanks for the reply!