So I’m trying to port this https://github.com/Gamua/Starling-Extension-Particle-System/tree/v1.8.x to Haxe Starling.
Here is what I got so far :
The system seems to be running, particles are being created with correct parameters, blend etc. but nothing renders on screen.
I’m stuck, the targetSpace seems to be correct, might be the juggler, I don’t know, I’m not skilled enough to find out. Please help me to finish the port, thank you !
How I create the particles :
var particles:PDParticleSystem = new PDParticleSystem(assets.getXml(“fireball”), assets.getTexture(“fireball”) );
Does it work on the Flash target?
If it does, we may have a little more work on our end to fully support all of Starling’s features.
I tried and it works in flash with a small change in Starling/utils/VertexData.hx (runtime index error)
I had to uncomment this //mRawData.fixed = false; line 147
I don’t know why it was commented, but there must be a reason… So is it safe to keep this change ?
Anyway it worked in flash, so I tried again in native build and it worked too with this little change, except for a few blends.
I found out not every pair of Blend source / Blend destination were visible in windows native build, when they are in flash, so there seems to be work to be done.
For example, one that doesn’t work :
Visible in flash but not in window build.
Thank you again !
We should probably add this to our Starling version, to include it out of the box, unless you think the extension should be kept separate?
Of course we should, what about the small change in Vertexdata ? Could it create bugs somewhere else ?
I did an initial merge here as a combination of your work and the original
Take a look, and let me know if this works for you
It works with a few changes, what is the best way for me to show you these changes ?
I uploaded the git, you can have a look, this works out of the box if you add it to starling including the file VertexData.hx
Thanks, I’m a noob about github so it helps !
I made a lot of fixes yesterday, and added the particle demo. I think it should all be working, I’m sorry that we did this in tandem, but if you wouldn’t mind taking a look, I think it should all be fine now
Really cool, it works perfectly !
Thank you so much, I switched my game development from starling Air to openfl few months ago and I have to say I couldn’t be happier.
You guys rocks ! I hope the game can be a good publicity for the plateform and his potential, I will make sure to talk about OpenFl.
If you’re curious about the game, it’s a brawler taking place on rooftops, you can have a look here https://twitter.com/early_melon