UIParticle aims to replicate the built-in ParticleEmitter as closely as possible but in 2D GUIs. I found that rParticle gave the average user a bit too much freedom and some people may want something more familiar, so I created this
It has nearly every property that the 3D particle emitters have
ive been updating this all night and i feel that it now perfectly mimics the 3d particle system, ive added support for color sequences, size sequences, transparency sequences, a range for speed, the ability to emit filling an entire frame vs a point, full typechecking, and changed much of how it works.
Hey, just a small thing but in your constructors, you actually make a new table for the object’s metatable per-object which is probably not what you want with respect to memory. Instead you should define your metamethods inside of the class functions table like so:
local ParticleClass: Particle = {}
ParticleClass.__index = ParticleClass
--...
-- when creating the object
return setmetatable(self, ParticleClass)
I also made a pull request to add a version that supports method chaining if you’d like.
Edit: seems to be an issue with the original module so I made an issue ticket thing on the original module.
yeah i noticed that as i usually do it this way, but honestly it was like 3 am and i was too tired to question it. ill go ahead and edit it right now, thanks for pointing it out
I keep getting “Keypoints is not a valid member of Color3” error and im not sure why. I used a frame as the hook and a textlabel as the element and just ran the demo in the source code particletest.rbxl (47.2 KB)
i attached the files and I also tried both your and 7z99’s solution as well, same problem
yeah! It works perfectly! My last question is just on changing the position for the particle. Is it always gonna be stuck to the hook? Cause changing the position doesnt seem to change it on the screen, just curious tho! It looks beautiful so thanks for making it!
it should follow the hook, if it doesnt let me know and ill take a look. by follow the hook i mean, if you tween the hook to point b then the particles should follow it there (not already emitted ones, there is no LockedToPart analog as of now)