ball bouncing experiment with goal always perfect angle CAPX

0 favourites
  • 4 posts
From the Asset Store
Bouncing ball
$9.99 USD
Template for a bouncing ball game, fully documented in comments and video
  • This little experiment is for the old school breakout style games and similar games where the ball or bullet would ricochet around in proper angles and not stray off at strange angles.

    Plus not leaving the boundary.

    I discovered that Custom Movements is much better than the Bullet behavior for the keeping the angles proper.

    Also, rexrainbow Boundary is great to keep the sprite inside the area and not have problem with escaping balls/bullets!

    What do you think?

    Requires plugin Boundary.

    The ball do go beyond the boundary in high speed/low spec computer but at least it will still be inside the box and not escape or go off in strange angles.

    Feel free to use this example in your works. But please use your own graphic for blocks.

  • Nevermind, it is not sound coding once I added more varied angles from a paddle... the blocks bounce off code is NOT good at all, lol. >_<; I wish I had more talent for math!!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Whenever I get stuck on a maths problem I search the forum for "problemname" & author="R0J0hound", & usually find my answer

    The last example he posted here might be helpful:

    As long as your sprites are all orthogonal you could use the isOverlappingAtOffset tests on lines 7-10 to work out which way to mirror the current velocity, & it should work even if you hit a corner.

  • mattb thanks!! I will examine that one! I have another thread in the questions forum on this, haha.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)