Rinkafest.lua

This is the place for discussion and support for LunaLua and related modifications and libraries.

Moderator: Userbase Moderators

Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Rinkafest.lua

Postby PixelPest » Mon Mar 14, 2016 6:20 pm

Yay. This was the first thing I ever made that worked. It pretty much turns all of the coins and coin like items in a level to Rinkas. It executes three simple steps:

1. Find all spawned coin and coin-like NPCs.
2. Turn them into Rinkas.
3. Align them to the 32x32 grid.

It's structured as an API so you can put it in Lua Scripts Lib and load the API into whatever level you feel like messing around in.

Here's what it looks like:
Spoiler: show
Image
Image
Image
https://www.dropbox.com/s/wyznge81lsymc ... t.lua?dl=0
Last edited by PixelPest on Tue Mar 15, 2016 10:21 am, edited 1 time in total.

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

Re: Rinkafest.lua

Postby Emral » Mon Mar 14, 2016 6:23 pm

Little fun bit of code. For the future I suggest using onTick rather than onLoop. I don't wanna go too much into detail but onTick is basically a better onLoop.

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Rinkafest.lua

Postby PixelPest » Mon Mar 14, 2016 7:52 pm

Enjl wrote:Little fun bit of code. For the future I suggest using onTick rather than onLoop. I don't wanna go too much into detail but onTick is basically a better onLoop.
Yep. I should change that. Made this before onTick existed and I just haven't gotten to updating it yet

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Rinkafest.lua

Postby PixelPest » Tue Mar 15, 2016 10:20 am

Here's the new link: https://www.dropbox.com/s/wyznge81lsymc ... t.lua?dl=0

It replaces all the onLoop event with onTick and has better documentation. All of my links from here forward will now be via Dropbox instead of MediaFire since it's been giving me trouble lately


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 5 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari