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
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
Hello, imagine that you fly and have to touch some game objects , when you touch it , it will give you a point, but when you miss it, it will show you a text , you missed one. I would like to know , how to detect that i missed such object, and there is gonna be many of them.
I have tried this, if my heroX is higher than the obstacleX and is not overlaping, restart layout, it dont work , the game froze
I would ned something like this
If Hero.X is higher Than Obstacle.X and there was no overlap , end game
Develop games in your browser. Powerful, performant & highly capable.
You could do it with Events, but as I'm stuck on a part in my game at the moment I'll give you a simple solution that popped into my mind, .
Make a transparent sprite that's as high as your active layout, but only 1px wide, and place it behind the player area with the Anchor behaviour. Then you can detect if it overlaps one of the missed objects and restarts the layout or ends the game.