Here is video tut…never done one before so bare with me. :persecutioncomplex: And oh my God do I sound ridiculous! I sound like I have a lisp. Maybe I should not have had my head on my knee.
yAW4tlWLyuE
Here is the basic rundown on how to use it.
-
Import the SystemX.jar into your project.
-
In your update method, call, “SystemX.update(delta)” You can pass in 1 if you do not have a variable time loop.
-
In you render method between SpriteBatch.begin() and SpriteBatch.end(), call, “SystemX.render(SpriteBatch batch)” This will render all particles at once. If you want to only render say certain effects, you can pass in the layer that effects are on and it will only render the particles on that layer.
-
After you create your super cool effect, press File->Export->Libgdx and give it a name. In exports folder you will see your file with “Fx” in front. Copy the file into your project. Add in the name of the package you put the file into. There is a missing semicolon on one of the imports. Guess I uploaded a wrong version because I remember fixing it >:(
-
Create the effect and add it to SystemX by calling, “SystemX.addEffect(effect)” This will return the index of this effect in SystemX. You can then retrieve this effect with that index and tell it to do things. Only do this for continuous effects that you want to ‘stop’ being continuous. The constructor takes the location and then a TextureRegion[] for each emitter in the effect.
The editor options are very straight forward. Point vel will point the particles in the direction they are traveling in. Friction values will be low. (.01f is good starting). If you make it them negative it will instead speed the particles up instead of slow them down. Rotation is the rate of rotation. So between 0-3 should be good starting point. “K” to kill all particles. “P” to pause.
I know that many other systems will have an .xml file that has all of the properties of the effect you are loading instead of giving you a class file. This is nice as it allows for a much easier time when updating effects but I really do not like .xml. Its probably because I have never had a huge need to use it.
I am not trying to sell this or compete with other Particle Systems out there. It is free to use for w/e you want, commercial or non. Tell me if it is too much work, bugs, things that would be better, or anything you think would be easier or nicer. I like the UI right now but some may not like it.