0 Favourites

Trouble creating multiball in Breakout clone

  • 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?

  • 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

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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)
Similar Topics Posts Views Last Post
Unread hot topic
48 4,639
SergeyDo's avatar
SergeyDo
Unread hot topic
0 Favourites
Trouble with pseudo Z axis
34 2,734
Arcticus's avatar
Arcticus
Unread hot topic
0 Favourites
Pick All / Create Bug
56 1,826
Prominent's avatar
Prominent