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
B
12
S
2
Posts: 33
Reputation: 714

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.
Image

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
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :)
B
17
S
9
G
71
Posts: 1,081
Reputation: 38,725


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests