Trouble creating multiball in Breakout clone

Get help using Construct 2

Post » Tue Apr 23, 2013 9:51 pm

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:



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?
B
6
Posts: 10
Reputation: 545

Post » Tue Apr 23, 2013 10:21 pm

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
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Sat Apr 27, 2013 1:31 am

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.
B
6
Posts: 10
Reputation: 545


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, jeffige and 1 guest