afterimages.lua - make things look cooler

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9860
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

afterimages.lua - make things look cooler

Postby Emral » Sat May 30, 2020 5:46 pm

Supports any arbitrary image, and has a helper function for easily drawing after images for npcs and the main 5 playables in regular situations.
Spoiler: show
Image
Download:
https://drive.google.com/file/d/1Rfo-qO ... sp=sharing

Use example is in the file. You can customize stuff like color, lifetime and angle of the drawn image. It really just invokes a glDraw call with a shader over the course of the lifetime :p

Enjoy.

Public Enemy Number 1
Dolphin
Dolphin
Posts: 89
Joined: Sat Jan 28, 2017 11:18 am

Re: afterimages.lua - make things look cooler

Postby Public Enemy Number 1 » Sat May 30, 2020 6:33 pm

Absolutely fantastic work! It would make the bosses especially look cool.

Luna
Volcano Lotus
Volcano Lotus
Posts: 502
Joined: Sat Feb 10, 2018 2:17 am
Flair: Meow
Pronouns: she/her
Contact:

Re: afterimages.lua - make things look cooler

Postby Luna » Sat Jun 06, 2020 5:07 am

This seems really useful - especially for fast-moving objects like Koopa Shells.

Chilly14
Snifit
Snifit
Posts: 236
Joined: Thu Jul 18, 2019 10:28 pm
Flair: wash your hands and stay at home
Pronouns: he/him

Re: afterimages.lua - make things look cooler

Postby Chilly14 » Sat Aug 29, 2020 6:07 pm

Sorry if I sound stupid, but can you make a more detailed guide on how to use this library? I've tried to use it before but to no avail since those attempts only gave away errors.

Murphmario
2025 Egg Hunter
2025 Egg Hunter
Posts: 2389
Joined: Fri Dec 20, 2013 7:07 pm
Pronouns: he/him

Re: afterimages.lua - make things look cooler

Postby Murphmario » Sat Sep 26, 2020 12:42 am

I'm having trouble with setting the color and making it transparent. Help would be appreciated.

FanofSMBX
Mouser
Mouser
Posts: 3878
Joined: Sun Dec 22, 2013 12:01 pm

Re: afterimages.lua - make things look cooler

Postby FanofSMBX » Mon Sep 28, 2020 11:27 pm

Is that Core's yellow shoe?

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9860
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: afterimages.lua - make things look cooler

Postby Emral » Tue Sep 29, 2020 12:19 am

FanofSMBX wrote:
Mon Sep 28, 2020 11:27 pm
Is that Core's yellow shoe?
No that's my Thwomp's Boot.
Murphmario wrote:
Sat Sep 26, 2020 12:42 am
I'm having trouble with setting the color and making it transparent. Help would be appreciated.
Just a glDraw call. Post your code so I know where you're making an error.

len
Shy Guy
Shy Guy
Posts: 6
Joined: Sun Oct 10, 2021 7:55 pm

Re: afterimages.lua - make things look cooler

Postby len » Sun Jan 02, 2022 10:14 am

it won't show up, I put in "obj = Mario" and it wasn't showing up on my character. Is there a way to fix this?

Blackops Koopa
Spiny
Spiny
Posts: 27
Joined: Thu Sep 05, 2024 5:09 pm
Flair: the quote lover
Pronouns: he/him

Re: afterimages.lua - make things look cooler

Postby Blackops Koopa » Fri Mar 07, 2025 5:49 am

i can't get it to spawn on a player

edit: nevermind i got it to work


Return to “LunaLua”

Who is online

Users browsing this forum: ElectriKong and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari