[NPC Pack] TEIN Agons & Agoniyas

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

Moderator: Userbase Moderators

squp
Snifit
Snifit
Posts: 211
Joined: Sat Aug 12, 2017 10:10 pm
Flair: worm
Pronouns: she/it
Contact:

[NPC Pack] TEIN Agons & Agoniyas

Postby squp » Tue Jun 21, 2022 10:43 am

An attempt to recreate Agons and Agoniyas from The End Is Nigh!!

Agons are essentially just circular hazards, attached to blocks by chains.
They can be moved on layers, but this might mess with the way the chains are drawn.

Note: the chains use verlet rope physics, which can be very resource-intensive if not used in moderation. There is an NPC config to help remedy this.

Image

Download link:
https://drive.google.com/file/d/1HjZUIB ... sp=sharing


Config:
  • variants (number) - The amount of graphical variants the NPC has.
  • blockcheckrange (number) - The maximum length to check for a block to attach to below the npc, in pixels. If nothing is detected the NPC will attach to the bottom of the section boundary.
  • preventdespawn (bool) - If set to true, agons will never despawn as long as the player is in the same section.
  • doverletrope (number) - If set to 1, chains will always do verlet physics . If set to 2, chains will only do verlet physics if the agon is swaying. If set to 0, chains will not do verlet physics at all . Set to 1 by default.
    This option is here purely because having the chains constantly update can lead to performance issues on lower-end PCs. Best to set this to 1 if you plan on having any custom movement.
  • frequency - (number) - Controls the frequency of the agons' sway. Set to 100 by default.
  • xamplitude (number) - Controls the width of the agons' sway. Set to 0.16 by default.

Credits:
Big thanks to Hoeloe for creating verletrope.lua, which i lifted from MaGLX3 and edited.
Also thanks to enjl for helping me debug my code
Last edited by squp on Sun Apr 07, 2024 7:37 pm, edited 4 times in total.

Waddle
Tellah
Tellah
Posts: 1583
Joined: Sun Sep 07, 2014 4:59 am
Flair: hi!!!
Pronouns: He/Him

Re: [NPC Pack] TEIN Agons & Agoniyas

Postby Waddle » Tue Jun 21, 2022 11:33 am

These are incredible, I dearly hope we see more of this stuff going forward. Instant vibe.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 6 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari