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
Our educational partners
Free education resources to use in the classroom
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
I made a sprite which have the bound to layout behavior.
I would like to know when it touches the layout border.
Any idea how to do that ?
Develop games in your browser. Powerful, performant & highly capable.
one way is to put some invincible sprites to the layout corners and check for collisions
another way is to calculate the layoutwidth-layoutheight and the objects X so if the sprite for example comes near the last pixel of the layout you fire the event
The first one is more reliable if my sprite have a complex hitbox. Thank you !