Bullet clipping through corners issue.

Just started using Construct 2? Post your questions here

Post » Mon Oct 09, 2017 9:15 pm

I was making a template to make a simple breakout clone. While testing it occasionally the ball will clip through this corners of the boarder. What's the best solution to resolve this?

Here's the capx.
https://www.dropbox.com/s/ia72fqz2bj9vy ... .capx?dl=0
Posts: 34
Reputation: 716

Post » Tue Oct 10, 2017 1:11 am

Hey, I made my version of this game just a few days ago! But in my game the ball is bigger and moves slower, so I don't have this problem

Try to make walls thicker, add the second line of defense.

Remove "Ball on collision with wall -> bounce ..." event, instead add Solid behavior to the walls.

Even after that when I left the game running for 10 minutes, the ball managed to escape.

I would add another sprite in the top left and top right corners, just outside the layout. If the ball collides with that sprite, you will know that it has escaped, and you can return it into the layout with something like this:
Ball Set position to (10,10)
Ball Set Bullet angle of motion to 45

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
Posts: 2,204
Reputation: 82,989

Return to Beginner's Questions

Who is online

Users browsing this forum: nacra and 0 guests