Collide and Overlap Problems
thiagoralves
Member Posts: 8
Hi again,
As I said on another topic, I'm trying to make a Puzzle Bobble clone with GS. Using the CodeMonkey "Jewel Destruction" Template, I was able to understand the 3-match logic needed for this game and the random colors bubbles. Now I'm having problem with phisics. Well, the game starts with some bubbles fixed at the screen and a cannon that can shoot bubbles on the fixed bubbles. But when I shoot a bubble, if it collides with another bubble, it must stay there fixed with the other bubble. My first attempt was to put a Rule that when it collide or overlap the object Bubble it must change it's physics state "Movable" to false. Didn't work. The bubble overlaps the other bubble without stopping. Next I tryed to put Change Velocity to zero on that same rule. Didn't work also. The only thing that "kinda" worked was change linear x and linear y velocity to zero. But it's still buggy. Sometimes the bubble stops really close to the other bubble, sometimes it overlaps the other bubble a little bit. So, it never stops at the same position. Actually it should stop without overlapping. Is there a better way to do that? Thanks.
As I said on another topic, I'm trying to make a Puzzle Bobble clone with GS. Using the CodeMonkey "Jewel Destruction" Template, I was able to understand the 3-match logic needed for this game and the random colors bubbles. Now I'm having problem with phisics. Well, the game starts with some bubbles fixed at the screen and a cannon that can shoot bubbles on the fixed bubbles. But when I shoot a bubble, if it collides with another bubble, it must stay there fixed with the other bubble. My first attempt was to put a Rule that when it collide or overlap the object Bubble it must change it's physics state "Movable" to false. Didn't work. The bubble overlaps the other bubble without stopping. Next I tryed to put Change Velocity to zero on that same rule. Didn't work also. The only thing that "kinda" worked was change linear x and linear y velocity to zero. But it's still buggy. Sometimes the bubble stops really close to the other bubble, sometimes it overlaps the other bubble a little bit. So, it never stops at the same position. Actually it should stop without overlapping. Is there a better way to do that? Thanks.
Comments
My Clone: [IMG]http://i976.photobucket.com/albums/ae243/ntware/Imagem3.png[/IMG]
Original Game: [IMG]http://i976.photobucket.com/albums/ae243/ntware/Imagem1.png[/IMG]
So, after analizing the image of the original game, I realized that the bubbles are aligned into a pre-determined position into a line, so that it stays allways aligned. I'm thinking about how can I make the same thing on my game. Maybe I can create many invisible bubble actors and populate all the screen with them. So, when a true bubble actor is created, it must self-align according to the closest invisible aligned bubble. Do you think that it can work?
My Game:
Original Puzzle Bubble:
Any ideas about how can I align the bubbles?