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
Is there a way to get the coordinates of a object eg. my player on the canvas?
Lets say my canvas is 720x480 pixel. My player is standing on pixel 196,64 which would be top/left of the canvas.
How to get these values into the code?
let's say you want to set an some_object to the obj_player
add action > set position x=obj_Player.X y=obj_Player.Y
So you have a lot of options like setting a variable, ...
Develop games in your browser. Powerful, performant & highly capable.
Use the system layer expressions. For example you can subtract viewportleft from player.x to get the player's position relative to the viewport.
Thanks you! ViewPort was the keyword for me.