Freely available particle examples

#1

Hello,
I have been learning Defold for just over a week and whilst I havent exhaustively searched the site I didn’t see a huge number of example particles on the site. I wondered if people would like to post some examples here… ?

I created a smoke trail for a game I am working on and post it here… to start the ball rolling.

smoke.zip (15.3 KB)

This effect is quite ordinary… but when layered with another flame animation it looks good (I hope ) in my game :-).

image

/Ash

9 Likes

#2

I think this is a great idea. I’d like to see a library of particle fx examples that people can use, either as is, or copy and modify. I think I remember @Pkeod working on something like this?

5 Likes

#3

Before I was here I was using CoronaSDK (now Solar2D) which I found to be quite inferior to Defold.
I did purchase the particle candy system for use with CoronaSDK… it comes with sources.
I used it as inspiration for an big explosion effect which I use in my game.

I cannot of course post the fire effects that come with the package so I downloaded some free ones from http://pngimg.com/ … They are listed as creative commons license. I include them here along with the defold particle effect… they look to be honest nearly as good anyway.

image

Hopefully the picture does it justice… looks rather nice when its animating

explosion.zip (260.7 KB)

If you improve it I would like to see that :slight_smile:

7 Likes

#4

I paid someone to make a shockwave effect for my game.
I have decided to release it here to the community so others can use it.

defold-shockwave.zip (379.7 KB)

To use it in your project you would need to copy the following items in:
Render and Libs directories.
Images\Logo\Logo_256.png
From the main collection… copy the postprocessing game object.
In the game project change the render to /render/render.render

Copy the code for the libraries
local camera = require(‘libs.camera’)
local shockwave = require(‘libs.shockwave’)

Then generate a shock wave using a line like this…
shockwave.new{x = x, y = y, radius = 100 * scale, duration = 0.5}

It allows upto 8 shockwaves to be generated at a time.

I am trying to get it to work with rendercam at present if anyone can help with this that would be handy. :grinning:

I was told by the developer to move the render code to a new render script I would move:
self.screenquad_pred , self.rt_width, self.rt_heigh and self.target variables.
Also to copy the code from line 111 to 122 in the update method which uses render.enable_render_target() and render.disable_render_target() to capture the output into a texture.

Good luck with it…

5 Likes