This extension contains numerous tools that make creating particle engines easy!
To use this extension properly, you will need to use clones.
The way this extension works is by making and storing an ID for a clone to use. The ID contains an x and y velocity that the host can use to change its posiion by.
All values are customizable; you can even apply forces like gravity to your particles!
This Block creates a new ID number with the inputted x and y velocity. In this case, the x velocity is 5 and the y velocity is 8.
This Block replaces the inputted ID number with the inputted x and y velocity.
If the inputted ID doesnt exist, it will simply create a new ID automatically with the inputted values.
This Block deletes all stored IDs and their values.
This Block deletes the inputted ID and its values.
This Block runs when a ID is deleted/added.
This Block checks if an ID exists or if its being used.
This Block reports the specified values of the inputted ID.
For example, I made an ID with the ID set to 5, x velocity set to 3, and y velocity set to 8.
Depending on what you set the dropdown to (left column), the Block will report different values (right column):
Left columns | Right columns |
---|---|
all | {"ID":"5","X Velocity":"3","Y Velocity":"8"} |
x velocity | 3 |
y velocity | 8 |
This Block reports the number of all existing ID's.
This Block generates a random number from input one (1) to input two (10). Setting precision mode to 'on' will make the Block generate a number with decimals.
This block is meant to go into the ID generation blocks. You can technically use a pick random block instead.
Example:
This will make a new ID with the x velocity set to a random precise number from -9 to 9 and the y velocity set to a random number from 10 to 20.
This Block will set the gravity force.
This Block reports the current gravity.
This Block updates the x, y, or both velocities of an inputted ID with the current gravity force.
This adds a cool gravitational effect with your particles!
This Block updates the x, y, or both velocities of an inputted ID with an inputted force.
This also adds a cool gravitational effect with your particles!
Creating Clones Loop:
Particle Clones Loop