Help wanted - how to make power-ups?

edited December 2012 in Working with GS (Mac)
Hi guys, im new here....need help with power ups. I understand the basic concepts of powerups work in gamesalad but i need tips on execution.

In my game there are bricks that the gun shoots at.....The gun is the main actor/player. When the bricks get destroyed, i want some bricks to drop power ups.

Can anyone explain to me how i can assign some random bricks drop power ups.

Now the second part of my question is, when a power up is picked up by my gun, i want it to instantly start shotting a different bullet(more powerful) for 5 seconds.
Please help me on how to go about this.
Help would be greatly appreciated.

Thanks.

Comments

  • i guess the threads title should have been help needed and i read the entire post and i think ive made spelling mistakes too many.
  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    I just changed your title :)
    Add self attribute inside brick actor, and make a rule:

    If actor overlaps or collides with actor XXX (your ammo actor)
    Change attribute self.random (this is your new self attribute) to: random(1,3)

    Then, make three rules:
    If self.random is 1
    Spawn actor PowerUp1

    If self.random is 2
    Spawn actor PowerUp2

    If self.random is 3
    Spawn actor PowerUp3

    Etc. You can add as many power ups as you want.

    And if your hero collides with any power up, destroy it, and change game attirubte game.PowerUp (integer) to 1, 2, or 3 (depends on the type of power-up you collected).

    Then, put four different rules inside your hero actor.
    If game.PowerUp is 1
    Here you can add anything you wish - shooting with different bullets, more lives, or anything else.

    If game.PowerUp is 2
    Here you can add anything you wish - shooting with different bullets, more lives, or anything else.

    If game.PowerUp is 3
    Here you can add anything you wish - shooting with different bullets, more lives, or anything else.

    And add this rule as well:
    If game.PowerUp is different than 0
    Timer, after 5 seconds
    Change game.PowerUp to 0.

    This rule will reset your power up after 5 seconds.

    Hope this helps!
  • thanks a lot for guiding me, i just read it, makes a lot of sense to me, will be implementing it and try it for a day and if i get stuck will come back here to bother you again. Your instructions are pretty clear.

    There's another thing id like to ask, the walls are bounceable , i want one actor to bounce off the walls but another actor to pass through them.
    Let me explain this in detail, i have a game area(320x480) and the edges have walls so that the ball that resides inside the walls does not go out of screen. But i want some objects inside the game area which when collide with the ball move here n there and the goal is to push them out of the playing area. I have this working, but later on in difficult stages, i want to have some solid shapes that obstruct the objects from leaving the game area....so now i have walls that the bricks should be able to move through, and then i have objects inside the game area...when the bricks collide with these objects they bounce off here and there... hopefully u get wh im trying to say...lol

    And last thing, when i make a game it gives the option for iphone (old generation) and the ipad ...theres no option for iphone 4/4s retina resolution. So if i make the game choosing the ipad resolution and tick the resolution independence, will that make the game look as good on iphones?

    Thanks a lot!!!!!
  • just to add to that....im using windows creator, when i stat off a project, it does not give the option for a screen resolution for iphone 5 resolution of 1136x640, nor does it show support for a resolution of 960x640. Is there a way i can start a project of manual size optimized for iphone 4-4s resolution. What is the best way to go about this as i want to make a game that runs well on all apple devices and looks good too, Thanks.
Sign In or Register to comment.