Breakout Game Powerups

MYRIXMYRIX Member Posts: 4
edited November -1 in Working with GS (Mac)
I am making a breakout game - arkanoid style but have hit a stumblling block.
What I am trying to do is to have a superball pill released when the ball hits the brick (I have figured that out) but what I need it to do is once it touches the paddle it changes the existing moving ball to a different ball and this is the where I am stuck.

What I need is to change a moving actor which is not connected to the pill or the paddle into the powered up actor. Is this even possible in Gamesalad?

Can someone please please please help?

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Hm, try changed the image/actor when the ball hits the paddle. Its probably better to change the actor. As for when and where it will spawn, i don't know. there might be a place you can put the cords into.
  • MYRIXMYRIX Member Posts: 4
    Thanks for the reply, but what we need to do is change the moving ball to a different ball when power pill drops on the bat. We cannot find anywhere to replace the moving actor.
  • UtopianGamesUtopianGames Member Posts: 5,692
    I would change the image and depending what you want the speed and size of the power ball.

    You will need a boolean or integer to trigger when pill hits bat....lets say we make a game.powerUp boolean and when pill collides with bat we change this to true.

    Now we do if game.powerUp = true in the ball actor change image to....change size.width change size.height change game.speed or what ever you want.

    Then after X seconds you can change game.powerUp back to false and change it all back to the original image size and speed.

    Hope this helps.

    Darren.

    image
  • MYRIXMYRIX Member Posts: 4
    Thanks Darren you have pointed us in the right direction and it works fine.... did not think of triggers. Also we had a look at your site and started to buy your templates as well for future projects.
    Raj
Sign In or Register to comment.