Creating a Puzzle Bobble Clone
thiagoralves
Member Posts: 8
Hi friends. This is my first post here. Yesterday I found this great software called GameSalad and now I'm trying to make some games for my iPhone. I'm developing a kind of Puzzle Bobble clone with gravity effect on the balls that are launched, but I'm having trouble with some logic stuff.
First, let me say what works. I managed to create the cannon that launches the bubbles. It can rotate with arrow keys and have maximum angle rotation limits. The bubbles the cannon launches are random (sometimes is blue, sometimes red, etc). The bubble has gravity, so it starts going down depending of the power of the shoot. The bubble bounces on the right and left walls exactly as the original Puzzle Bobble.
Now, what I don't know how to do is the game logic. If you know the Puzzle Bobble game, the objective is to destroy the bubbles by shooting bubbles of the same color on them. If there are 3 or more bubbles of the same color together, they are destroyed. But how can I know what bubble is next to the other? I created different actors for different color bubbles (i.e. red bubble actor, blue bubble actor, etc) but I don't know how to check if there are 3 or more bubbles of the same color together.
Other problem I'm facing is that when the cannon launches a bubble and it hit the top or another bubble, it must stick there, without gravity effect or aceleration. I tried to put a rule that when it collides with object with tag "bubble" it changes atribute velocity to zero, but it's not working. Is there a better way to do this?
Sorry for the long text. It's hard to explain my game only with words. I can upload my source code somewhere if it helps.
Thanks
First, let me say what works. I managed to create the cannon that launches the bubbles. It can rotate with arrow keys and have maximum angle rotation limits. The bubbles the cannon launches are random (sometimes is blue, sometimes red, etc). The bubble has gravity, so it starts going down depending of the power of the shoot. The bubble bounces on the right and left walls exactly as the original Puzzle Bobble.
Now, what I don't know how to do is the game logic. If you know the Puzzle Bobble game, the objective is to destroy the bubbles by shooting bubbles of the same color on them. If there are 3 or more bubbles of the same color together, they are destroyed. But how can I know what bubble is next to the other? I created different actors for different color bubbles (i.e. red bubble actor, blue bubble actor, etc) but I don't know how to check if there are 3 or more bubbles of the same color together.
Other problem I'm facing is that when the cannon launches a bubble and it hit the top or another bubble, it must stick there, without gravity effect or aceleration. I tried to put a rule that when it collides with object with tag "bubble" it changes atribute velocity to zero, but it's not working. Is there a better way to do this?
Sorry for the long text. It's hard to explain my game only with words. I can upload my source code somewhere if it helps.
Thanks
Comments
Darren.
http://gamesalad.com/game/play/24461
Unzip
Click on file.
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io