Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GamemakerCasts/particles
A simplistic particle system that is automagically cleaned up
https://github.com/GamemakerCasts/particles
Last synced: 2 months ago
JSON representation
A simplistic particle system that is automagically cleaned up
- Host: GitHub
- URL: https://github.com/GamemakerCasts/particles
- Owner: GamemakerCasts
- License: mit
- Created: 2021-09-17T12:19:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-21T18:14:01.000Z (over 2 years ago)
- Last Synced: 2024-08-02T07:11:00.640Z (5 months ago)
- Language: Yacc
- Size: 19.5 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gamemaker - Particles Wrapper - A simplistic particle system wrapper that is designed to make creating particles fun and easy. (Particles / Recommendations)
README
Particle - System
---
A simplistic particle system wrapper that is designed to make creating particles fun and easy.### Requirements
- GameMaker Studio 2.3.3 or higher### Quick Guide
- Download **yymps** file found in the release tab
- Import `obj_Particles` into your own project
- Create an object for your new effect (example: rain)
- Add a create event and here is some sample code```
// create an instance of our particles
var effect = instance_create_depth(0, 0, depth, obj_Particles);// change the emitter to go all across the top
effect.set_emitter_size(0, room_width + 128, 0, 0);
// change to line
effect.set_shape(pt_shape_line);
// set the origin to be pointing towards the direction
effect.set_orientation(0, 0);
// change the direction to the left
effect.set_direction(260);
// change the speed to a high valu
effect.set_speed(10, 20);
// mix the colors between white and grey for each particle
effect.set_color_mix(c_white, c_ltgray);
// change the alpha to 0.2
effect.set_alpha(0.2);
// set the life so the particles will go the entire room height
effect.set_life(room_height);
// change the size
effect.set_size(0.01, 0.5);// stream 8 particles every tick (frame)
effect.stream(8);
```