How to Bubbles efekt??

kickshawstudioskickshawstudios Member Posts: 13
edited November -1 in Working with GS (Mac)
So,
In gamesalad - How to get the dissaperance of 4 or more equal objects when they collide together, and all object below them, simmilar to the game of bubbles?

Comments

  • jmp909jmp909 Member Posts: 73
    don't even bother trying :)
  • KamazarKamazar Member Posts: 287
    Oh boy. That'd be a chore. Not so much the disappearing upon collision, but keeping the already equal objects from disappearing before collision.

    ... gah, it's definitely doable, I spent a good 15 minutes thinking about it, but I'm kinda experiencing a paradox here. I have to figure out a way to make the collision of one ball with two others destroy all three, but not make it so a collision with one would destroy them both. Or how to keep three or more balls right next to each other without them destroying each other. The stationary balls would have to have a certain value that keeps them from being destroyed until a ball with a different value collides with them, changing the value that's keeping them from being destroyed...
  • jmp909jmp909 Member Posts: 73
    this is complicated enough in Flash which has full support for arrays, OOP class objects etc. (I'm using Box2D and checking and recreating contact groups when an object touches with or releases from another). I'll be amazed if you can do this in GS with good performance, if at all.

    Why not save your energy and make something simpler? :)

    PS How are you defining "equal objects?" by colour? If you're positions are fixed eg 8 compass points then I've seen people spawn invisible "feelers" to check for collisions.
Sign In or Register to comment.