afterimages.lua - make things look cooler

Share and discuss custom LunaLua code and content packs for SMBX2.
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

afterimages.lua - make things look cooler

Postby Enjl » 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
Lakitu
Lakitu
Posts: 478
Joined: Sat Feb 10, 2018 2:17 am
Flair: Expectations are the seed for disappointment.
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: 230
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
Chargin' Chuck
Chargin' Chuck
Posts: 2343
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?

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: afterimages.lua - make things look cooler

Postby Enjl » 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.

LennonsFactory
Shy Guy
Shy Guy
Posts: 6
Joined: Sun Oct 10, 2021 7:55 pm
Pronouns: he him his
Contact:

Re: afterimages.lua - make things look cooler

Postby LennonsFactory » 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?


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests