GetAssetPack

Lime.Particles

Lime.Particles
Price
Free
Type
Sprites
Creator
Limekys
Dimensions
2D
Engine
GameMaker
Animation
Animated

A GameMaker particle library adds point gravity and delta-time control for particle speed.

Advanced particle system for Game Maker Studio 2.3+ (works on structs)

Available on

Search by image

Upload a reference to find previews with similar colors, contrast, and detail.

Lime.Particles

Lime.Particles1 / 7
Limekys · itch.ioFree
2D
Sprites
License not indexed
  • i Check the terms on the original listing.
Show full terms

Advanced particle system for Game Maker Studio 2.3+ (works on structs)

A GameMaker particle library adds point gravity and delta-time control for particle speed.

View original listing

Description

Advanced Particle System

Show full description...

This system was originally designed to allow manual control of the particle speed, since Game Maker particles were tied to game time. But now we have part_system_automatic_update() and part_system_update() that allow us to disable automatic updating and update them manually at the speed we want. So since then I stopped updating this system further and advise you to use Game Maker's built-in particle system, especially since we now have a convenient built-in particle editor and no longer need to write huge code in which we need to adjust every parameter of the particle.

But some aspects still remain unsolved, such as gravity to a point and collision checking. So if you still need these features, you can use them with this library!

You can download this project or clone repo on Github! You can also help in the development of this system, suggest your improvements and functions!

Discord server

Github

Compare

Simple example

All functions looks like standart gms particle system. We are create particle system, emitter and particle type.

For our particle system to work, we need to add a step function to the step event. And of course to create our particles need to run burst function almost like the standard system, all functions look identical, except that at the beginning ascribed to "advanced_".

But in order for our particles to be visible, they need to be drawn on the screen, for this you just need to run the draw function in the "draw" event.

Done!

***

Why advanced?

Point gravity

Because, as first, we have part_point_gravity function!

Delta time

And, as second, we have delta time! Which give us a huge control with particles speed! At low and high FPS we have the same speed of particles.

To turn on delta time just call enabledelta() function from advanced particle system struct.

With delta enabled you should remember to setup right speed, gravity amount and life values! For example without deltatime we should setup life 60 for 1 second life for this particle with room speed 60 and with deltatime we should setup life to 1 for 1 second life regardless room speed. For burst particles with advanced_part_emitter_burst function without deltatime 1 for 60 particles each second with room speed 60 and with deltatime 60 to burst 60 particle within a second!

Example with 15 FPS: left particles is standart GMS2 particle system, middle is advanced particle system without deltatime and right with deltatime.

Collisions

For collisions we have part_step_function. With which we can add what you want including collisions!

For example collisions with objects:

And result is:

Distance to mouse:

Or just a rain:

***

Fireworks!

Code

One part burst and thats all

And how it looks!

***

Conclusion

We have a very interesting particle system with functions that are not in the standard particle system, but not the most productive! I try to do my best to optimize it. If you like, you can help develop this project!

Compatibility:

Lime.Particles version Game Maker runtime version

2023.10.17+

2023.1.1.81+

Discord server

Github

Tags

deltatimeEffectsfreeGameMakerParticles

Downloads

Name your own price.