Help wanted - how to make power-ups?
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.
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
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!
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!!!!!