object_ball = default ball
object_ball_super = ball that goes through bricks
(object_ball_super is a child of object_ball)
Issue itself matters when the multiball pick up is picked up while there is already one in play. There can only be one kind of ball in play, either the default kind, or the power kind.
I have it so that you can have up to 27 balls in play at once, because I think it's cool.
Basically, I need it so that the first group of code does not happen if their are object_ball_super in play. Otherwise, if I have several object_ball_super in play, it will make regular balls instead of more superballs.
(This is for when the the paddle collides with the powerup icon that descends from above.)
[codebox]
with (object_ball)
{
var nnn;
repeat (2)
{
nnn=instance_create(x,y,object_ball_random);
nnn.direction=random(360);
nnn.speed=10;
nnn.oldspeed=10;
}
}
with (object_ball_super)
{
var nnn;
repeat (2)
{
nnn=instance_create(x,y,object_ball_super);
nnn.direction=random(360);
nnn.speed=10;
nnn.oldspeed=10;
}
[/codebox]
Edited by borgisme5, 26 February 2009 - 08:58 PM.











