MMX Chill Penguin (LunaLua API)

This is the place for discussion and support for LunaLua and related modifications and libraries.
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?
User avatar
kking117
Goomba
Goomba
Posts: 1
Joined: Fri Jul 27, 2018 7:26 am
Current Project: Getting out of bed.
Chat Username: kking117

MMX Chill Penguin (LunaLua API)

Postby kking117 » Fri Jul 27, 2018 9:17 am

Chill Penguino

Ever wanted to fight Chill Penguin as Mario or Luigi?
No? Yeah me neither but you can now anyway.

By default it replaces the SMB3 Goomba and its projectiles replace SMB3 red Goomba and SMB blue Goomba. It also functions differently when set as boss in the editor.
With that out of the way here's some gifs to showcase what it can do:
Spoiler: show
Jump Attack:
Image
Ice Ball Attack:
Image
Slide Attack:
Image
Ice Breath and Blizzard Attacks:
Image
Health Bar Demonstration:
Image

How to use:

1. Put the chillpenguin.lua file and graphics in your level's folder.

2. Put this in your level's lunadll.lua file.

Code: Select all

local chillpenguinAPI = API.load("chillpenguin");

I want to make it jump higher/don't want it to replace Goombas:

Open up you level's lunadll.lua file in your preferred text editor.
Now at the start of the file add these to a new line:

Code: Select all

chillpenguin.PENGID = 1;
chillpenguin.ICEBALLID = 2;
chillpenguin.STATUEID = 27;
These are all parameters that you can change if you want to modify behaviour
or change which npc Chill Penguin replaces.
For a list of parameters see: https://github.com/kking117/SMBX2-NPC-M ... iki/PARAMS
Or view the chillpenguin.lua file.

APIs Needed to Run:
rng.lua
pnpc.lua
particles.lua

Download:
https://github.com/kking117/SMBX2-NPC-M ... enguin.git

Updates:
Spoiler: show
v1.0
  • Chill Penguin now stands still when set to don't move in the editor.
  • Fixed an issue where Chill Penguins set to don't move will start attacking after flinching.
  • Chill Penguin no longer gets set to its don't move AI when leaving the section and re-entering unless it was set to don't move in the editor.
v0.9
  • More parameters are included such as air and ground friction.
  • Code added to handle when Chill Penguin is being held.
  • Blizzard's push force code changed so that Link no longer moves faster while holding run.
  • All aspects of Chill Penguin now works correctly in 2 player even if both players are fighting separate Chill Penguins in different sections.
v0.8
  • First public release.

Issues/Bugs/Stuff to be Aware of:
Spoiler: show
  • Due to how much code the mod has to run through it's recommended to not dump a bunch in a section.
    (Though if you want to know I could have 10 around at once with no slowdown, and my laptop experiences high slowdown running Shovel Knight.)
  • Because of the way the particle.lua works, the blizzard particle effect will only play on the section player 1 is on.
Last edited by kking117 on Sun Jul 29, 2018 3:50 am, edited 5 times in total.
Have you ever been so lazy that you had a deep breath for lunch?

User avatar
SMBXFanBoi2013
Pokey
Pokey
Posts: 235
Joined: Fri May 04, 2018 12:04 am
Flair: I am the master of level editing
Current Project: Mario & the Missing Shine Sprites
Chat Username: Dudsans2005
Contact:

Re: MMX Chill Penguin (LunaLua API)

Postby SMBXFanBoi2013 » Fri Jul 27, 2018 1:18 pm

Looks great, that would be a great boss for my upcoming sequel of my current project.
I believe in Geno as my lord and savior. If you do, please put this in your signature.
----------------------------------------------------------------
Image
If you want to join my Discord server, here is the invite link to it: https://discord.gg/YcehmBZ
But the server will be abandoned and removed after MATMSS is finished...
---------------------------------------------------------------
Geno may be my favorite Mario character, but the Koopalings are also my favorite characters (but Larry, Lemmy, Ludwig, and Iggy are my favorite koopalings), and so are Boohemoth, Luigi, Yoshi, Mario, Rosalina, Koopa, and Waluigi.
Image
---------------------------------------------------------------
If you want to see my videos, go to my Youtube channel:
https://m.youtube.com/channel/UCIT_h6HxKSeIShIIVvhTduw
My project:
Spoiler: show
Image
I support:
Spoiler: show
Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

User avatar
1AmPlayer
Lakitu
Lakitu
Posts: 489
Joined: Sun May 21, 2017 3:36 am
Flair: I'm a hellspawn.
Current Project: Moonlight Forest (3rd Weather Trio Series)
Chat Username: IAmPx
Contact:

Re: MMX Chill Penguin (LunaLua API)

Postby 1AmPlayer » Tue Aug 28, 2018 7:48 am

Looks cool. I might try it later to fiddle around.
Have a lenny. ( ͡° ͜ʖ ͡°)

I have come back in SMBX Forums. Finally! :D
Image

User avatar
hacheipe399
Fighter Fly
Fighter Fly
Posts: 62
Joined: Mon Feb 10, 2014 12:29 pm
Current Project: Be an engineer in 5 years.

Re: MMX Chill Penguin (LunaLua API)

Postby hacheipe399 » Tue Aug 28, 2018 1:56 pm

You can solve the section issue by using the Memory offset 0x146 (FIELD_WORD) of the NPC instead of player.section. I did it for custom NPC behaviors and worked in all sections of levels.
I'm the spanish translator of the PGE Project. Please use it and give feedback to improve the software!
My LunaLua API:
Image

My currently released GFX work:
Image
Image
Image

I'm Hardcore 2 da bone.
1. for the treble.
2. for the bass


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests