Breakout Clone tutorial bug

  • Hi all.

    I'm trying to follow the 'Breakout clone' tutorial on youtube.

    However:

    When the player gets the multiball powerup, the new ball starts frozen.

    It only bounce around naturally after the mouse is left-clicked.

    please see animated gif illustration.

    Any idea where I've gone astray?

    <img src="http://4.bp.blogspot.com/-pMEYdWtdHv0/UQAhVhT0nSI/AAAAAAAAAVY/sljBe-pCaoE/s1600/breakout_bug_1.gif" border="0" />

  • Are they physics based ? Probably best to post a capx or a screenshot of the part where the extra ball is spawned.

  • Here is where the ball is spawned:

    <img src="http://4.bp.blogspot.com/-q7Q8Fmde-oA/UQCa12mykRI/AAAAAAAAAV4/sV3B-4nEiXo/s1600/bug_1.jpg" border="0" />

    Here is a command which may be part of the problem.

    (It's intended purpose is to stop the ball from moving until the game starts)

    <img src="http://4.bp.blogspot.com/-ZdT_xYaiC98/UQCa1RkXmCI/AAAAAAAAAVw/DDbjOVoZ8rg/s1600/bug_0.jpg" border="0" />

  • The problem is that "Ball: Spawn Ball" doesn't pick the new ball (it did used to work that way) so the following lines (set gravity and speed) apply to the existing ball and not the newly created one.

    Change that line to "System: Create Ball at Ball.X, Ball.Y".

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yep!

    That did it.

    Thank you!

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