How do I a soapy bubble effect?

0 favourites
  • 9 posts
From the Asset Store
Customizable speech bubble dialogue system! With this dialogue system, you can finally have speech bubbles in your game!
  • I'm trying to recreate a common effect when you have bubbles all grouped together. For example, imagine eight bubbles on a screen. Grab a bubble near the edge or in the center of the cluster and move it around and the other bubbles move "around" that bubble. If you pop said bubble, the remaining bubbles rush to fill the space left over. I tried using a joint and a "for each" but that didn't quite work. My goal is to just have bubbles spawn and then "stick" together when they come in contact with each other.

    I eventually wanna make the bubbles sorta "bounce" when they collide but i can do that later with a sine I think.

  • This is not an easy task. See this post, there are some cool examples:

    construct.net/en/forum/construct-2/general-discussion-17/can-we-make-natural-effect-lik-139909

  • This is not an easy task. See this post, there are some cool examples:

    https://www.construct.net/en/forum/construct-2/general-discussion-17/can-we-make-natural-effect-lik-139909

    I took a look at the post and wow, I just wanted the effect of bubbles touching but someone actually made them come together and deform like actual bubbles! The effect i was looking for was more like marbles wanting to stay together but I'm going to study what they posted in the other post. I realize now I was a bit to in the wrong direction with my explanation but yeah, that really helped out thank you kindly.

    Now i just gotta decipher how they did it. ^_^

  • brick334

    I took ROJOhounds example from the thread dop posted, and added a more bubble like image, and the ability to pop and create new bubbles.

    it isn't viable on mobile because the math ROJOhound uses is very cpu intensive... but it looks pretty good.

    https://www.rieperts.com/games/forum/bubbles.capx

    oh, it requires the paster plugin...

    https://www.construct.net/en/forum/extending-construct-2/addons-29/plugin-paster-66240?kws=paster

  • brick334

    I took ROJOhounds example from the thread dop posted, and added a more bubble like image, and the ability to pop and create new bubbles.

    it isn't viable on mobile because the math ROJOhound uses is very cpu intensive... but it looks pretty good.

    https://www.rieperts.com/games/forum/bubbles.capx

    oh, it requires the paster plugin...

    https://www.construct.net/en/forum/extending-construct-2/addons-29/plugin-paster-66240?kws=paster

    wow, that's rather impressive. I found a somewhat lame workaround to get the desired affect. I used the physics plugin and set the density to 500. Made the collision a circle and they group rather fine. Its not a fine as what you have, they again look like marbles stacked together. I'm gonna try an see if maybe I work or tweak it in order to get that "bubbly" look. Again thank you very much for your help.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Your post says "bubbles" :) If you want something like "marbles in a bowl" effect, then it's quite easy to do with physics. Disable gravity, set "collision mask=circle", and on every tick apply a small force to each marble towards the center.

  • Your post says "bubbles" :) If you want something like "marbles in a bowl" effect, then it's quite easy to do with physics. Disable gravity, set "collision mask=circle", and on every tick apply a small force to each marble towards the center.

    what do you mean by " small force" towards the center? Sorta threw me there mate.

  • Apply a small physics force towards the center of the bowl. Something like this:

    On every tick : Ball apply Physics force 2 towards position (640, 360)
    
  • Apply a small physics force towards the center of the bowl. Something like this:

    > On every tick : Ball apply Physics force 2 towards position (640, 360)
    

    Oh...okay, thank you kindly.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)