Thanks a bunch! super cool effect. Going to use it in my project, Captain Soda! I will credit you in it. https://www.colebeernaerts.com/captainsoda
GMS2 - Mouse Trail Effect
A downloadable asset pack
This example shows how to trace a line with primitives on GameMaker Studio 2.
How it works:
The current position of the mouse is inserted in two lists (x and y). The lists have a limit of points that can contain, if this limit is reached, the last items of the lists are removed.
To draw the line we use primitives with the pr_trianglestrip mode, so after creating the first triangle with 3 vertices, each new vertex adds a new triangle that is formed based on the last two vertices.
If you have any comments or suggestions, please, let me know.
Click download now to get access to the following files: