It’s the moment I’ve been waiting for… Your favorite particle effects library is up on GitHub with a new version - CBEffects 2.0!
I’ve finally figured out how to use GitHub, and, consequentially, put the code up completely opensource (yes, it was opensource before, but it used to be on DropBox - now contributors can help, issues can be submitted, and the documentation can finally be kept up).
Some of the many goodies it’s got -
- Delta time calculation so your effects look pixel-perfect across all perfomances
- Completely new CBEffects theme
- Code completely opensource and open to contributors
It might be helpful to put an http:// in front of the URL. I think the forum software will automatically make it a link (http://coronalabs.com) but if not, you could insert a clickable link using the little link Icon just to the right of the numbered list Icon above.
It would be most useful instead of having to copy the link, open a new tab/windows, paste the link in.
Do you have an folder named “Textures” with “generic_particle.png” inside of it?
Notice the build function - display.newImage(“Textures/generic_particle.png”) - that creates particles. It’s using display.newImage() to create a particle according to an image (generic_particle.png), which I’m guessing you don’t have in your project.
If you have a “glow dot” image, that’s what the generic_particle.png is. Just modify the path of the build function to fit your image.
If that’s not the problem, it would be nice to have any errors that are occurring.
Yes, I have tried putting the ‘Textures’ folder in both the main project folder and inside the ‘CBEffects’ folder. There are no errors either which is why I’m so puzzled…
If it helps, I’m using Storyboard and also received an error when I renamed the ‘Textures’ folder in my main project folder(expected).
Caleb - your work is great, but as you can see, this fantastic library realy needs a full intelligible manual with all methods and properties description
THere’s a full parameter reference in each CBEffects package, and the wiki is in the workings. One of the good things about GitHub is that all changes to the wiki are up instantly, so I don’t have to completely finish the wiki before publishing it - just publish the part that’s finished.
I just did the same in a new project and strangely enough, it worked fine…
I added a
[lua] print(‘vent was executed’)[/lua]
and I got results in the terminal… is there any other way I can check it’s begin executed correctly?
EDIT: Okay… for some reason, it seems to be randomly showing up, sized and positioned differently to how it looked in a fresh project, about 5 or so minutes later…