Trouble creating multiball in Breakout clone

0 favourites
  • 3 posts
  • I'm working on my first game, a Breakout clone (gotta start somewhere, right?). The twist is that the goal is not to destroy all the blocks on the screen, but to destroy certain targets. The blocks are just obstacles for the ball. However some of the blocks do special things when they're destroyed. The two I'm currently planning are a life bonus and a multiball. I got the life bonus just fine, but I'm having trouble with the multiball. I have it set up like this:

    <img src="http://farm9.staticflickr.com/8126/8675437323_e24f635ba3.jpg" border="0" />

    However, all this does is just create an unmoving ball at the point of collision. I thought editing the attributes would affect the newly spawned ball as well, but it's not working. Help for a newbie please?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I put together a small simple thing the same as what you have and it spawns fine. The other ball goes off in a random direction, as I wanted. Is startingSpeed set ok? Sounds like that's where the problem lies. Make sure you're not setting it to 0 or something somewhere. Unless it's stuck in the block?

    And yes, very smart decision to start on simple smaller games. How refreshing it is not to see someone try and do a full RPG as their first game ;p

  • Thanks for the reply, and sorry it took a while to get back to you. I figured it out. Turns out the problem was not in the startingSpeed variable, in the fact that i was spawning the extra ball, not creating it. Ah well, if it works it works I guess.

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