Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - bubbles

DBPro Master
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st May 2011 04:27
spawn some bubbles from the mouse. Needed it for my game and thought I'd share the function, figured others would find use for this simple particle effect. The bubbles will start small then expand as they rise.

The image I used was a 64x64 bubble png.

Years of Service
User Offline
Joined: 21st Aug 2009
Posted: 27th May 2011 00:31
I just changed line 13 to:

It's pretty cool though, 2D particle effects

There is no such thing as "Too Fast!"
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 6th Jul 2011 01:03
Neat affect Phaelax. One suggestion though, I would remove clone sprite and just use a single sprite, rescaling it and pasting it to the screen for better performance.

Login to post a reply

Server time is: 2023-03-25 00:38:25
Your offset time is: 2023-03-25 00:38:25