GMS2 - Mouse Trail Effect
A downloadable asset pack
Download NowName your own price
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.
Enjoy :)
Download
Download NowName your own price
Click download now to get access to the following files:
Sample - Mouse Trail Effect.yyz 17 kB
Comments
Log in with itch.io to leave a comment.
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
This is super awesome!