Smooth Spin Trail!

[Reusable] Smooth Spin Trail! v1

I made a smooth spin trail somehow.
It's made of 30 lines of code and can be applied to any object and use any thok object.
For convenience, the lua includes a code that runs the function when spinning as demonstration.
The BLEND version features the 2.2.9 AST_ADD blendmode effect, which gives the trail a nice shiny look.
srb20824.gif

-Blending, Software. GIF by Cutedy.
srb20054.gif

-Blending, OpenGL. GIF by BuggieTheBug.
srb20322.gif

-No blending.

The function is: SmoothTrai(mo, trailmo, freq).
mo is the object you use as source (e.g. player.mo).
trailmo is the thok object the trail will be made of (e.g. MT_THOK).
freq is the distance between 2 thok objects (e.g. 4*FRACUNIT).
Author
ffoxD
Downloads
1,195
Views
2,204
First release
Last update
Rating
4.00 star(s) 4 ratings

More resources from ffoxD

Share this resource

Latest reviews

It`s cool, but has a small issue with "freq": If you dont make it *FRACUNIT then SRB2 just crashes(for example: 5 or 0*FRACUNIT).
ffoxD
ffoxD
It's not a bug. It just spawns so many thok objects the game crashes. A FRACUNIT already is a extremely small distance (merely 1 pixel) so you don't want to set the frequency to just a very small fraction of it.
Upvote 0
I love this mod but is there a way to turn down the blend?
ffoxD
ffoxD
Sure, just download the blendless version!(L_SmoothSpinTrail-v1.lua instead of L_SmoothSpinTrail_BLEND-v1.lua)
Upvote 0
very very nice! I love the look of it.
Upvote 0
Welcome to releases!
Upvote 0
Top