Speed Shroom.lua

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?
TDK
Kamikaze Koopa
Kamikaze Koopa
Posts: 1384
Joined: Wed Nov 11, 2015 12:26 pm

Speed Shroom.lua

Postby TDK » Fri Jun 23, 2017 12:59 pm

Here's a small API that's uses mushrooms as speed powerups.

How to use:

1. First put everything in this folder into your level's folder.

2. Make a lunadll.lua file.

3. Then type:
local speed_shroom = API.load("speed_shroom")

Addition things:
- The speed shroom replaces NPC-184, which is the SMB1 mushroom. If you want it to replace another NPC, just change the value speed_shroom.id.
For example, if you want it to replace the SMB3 mushroom (NPC-9), you would type speed_shroom.id = 9
- You can edit how long the speed boost will last by changing the value of speed_shroom.max.
So if you want it to last for 10 seconds you would type speed_shroom.max = 650

Here's an example level.


Download and enjoy:
https://www.mediafire.com/?3dqqllyk3j8h47t
Last edited by TDK on Wed Jan 10, 2018 1:21 pm, edited 1 time in total.

User avatar
Benial
Bob-omb
Bob-omb
Posts: 38
Joined: Thu Dec 15, 2016 4:28 pm
Chat Username: Benial

Re: Speed Shroom API

Postby Benial » Sat Jun 24, 2017 4:45 am

Looks nice!

Feedback
  • Should have a shorter timer
  • Would be better with a star-like jingle to show it's temporary
  • Change the sprite. It looks too much like a normal 1-up
  • Maybe make a boost panel form?
Image He has no style. He has no grace. He wants you to join the master race

TDK
Kamikaze Koopa
Kamikaze Koopa
Posts: 1384
Joined: Wed Nov 11, 2015 12:26 pm

Re: Speed Shroom API

Postby TDK » Sat Jun 24, 2017 7:30 am

Benial wrote:Looks nice!

Feedback
  • Should have a shorter timer
  • Would be better with a star-like jingle to show it's temporary
  • Change the sprite. It looks too much like a normal 1-up
  • Maybe make a boost panel form?
Thanks for the feedback.
You can edit the timer and the sprite.

User avatar
timocomsmbx2345
Ninji
Ninji
Posts: 826
Joined: Sat Feb 06, 2016 1:44 pm
Current Project: i dont even know anymore. . . .
Chat Username: same as my username
Contact:

Re: Speed Shroom API

Postby timocomsmbx2345 » Mon Jun 26, 2017 5:26 pm

Oh yeah, i want to see a powerup where you can shoot a fireball and an iceball at the same time.
Also, nice work; i'm gonna try and use custom power ups in my episode.
SMBX 2.0 β4 is here!!! How about 2.0 β5?
ImageImage
Image
Meepyglobix wrote:DON'T SAY "38A??". OR I'll SHOOT YOU.
Spoiler: show
Image Thanks Pixelpest!!!!
Image
Image

TDK
Kamikaze Koopa
Kamikaze Koopa
Posts: 1384
Joined: Wed Nov 11, 2015 12:26 pm

Re: Speed Shroom API

Postby TDK » Mon Jun 26, 2017 5:41 pm

timocomsmbx2345 wrote:Oh yeah, i want to see a powerup where you can shoot a fireball and an iceball at the same time.
Also, nice work; i'm gonna try and use custom power ups in my episode.
I noticed that you mention shooting a fireball and iceball at the same time. How would that work exactly?

User avatar
timocomsmbx2345
Ninji
Ninji
Posts: 826
Joined: Sat Feb 06, 2016 1:44 pm
Current Project: i dont even know anymore. . . .
Chat Username: same as my username
Contact:

Re: Speed Shroom API

Postby timocomsmbx2345 » Mon Jun 26, 2017 5:50 pm

it shoots 2 projectiles at once
SMBX 2.0 β4 is here!!! How about 2.0 β5?
ImageImage
Image
Meepyglobix wrote:DON'T SAY "38A??". OR I'll SHOOT YOU.
Spoiler: show
Image Thanks Pixelpest!!!!
Image
Image

User avatar
timocomsmbx2345
Ninji
Ninji
Posts: 826
Joined: Sat Feb 06, 2016 1:44 pm
Current Project: i dont even know anymore. . . .
Chat Username: same as my username
Contact:

Re: Speed Shroom API

Postby timocomsmbx2345 » Mon Jun 26, 2017 6:02 pm

can yo change the speed of mario itself when yo get the speed shroom?
SMBX 2.0 β4 is here!!! How about 2.0 β5?
ImageImage
Image
Meepyglobix wrote:DON'T SAY "38A??". OR I'll SHOOT YOU.
Spoiler: show
Image Thanks Pixelpest!!!!
Image
Image

TDK
Kamikaze Koopa
Kamikaze Koopa
Posts: 1384
Joined: Wed Nov 11, 2015 12:26 pm

Re: Speed Shroom API

Postby TDK » Mon Jun 26, 2017 6:06 pm

timocomsmbx2345 wrote:Oh yeah, i want to see a powerup where you can shoot a fireball and an iceball at the same time.
Also, nice work; i'm gonna try and use custom power ups in my episode.
Like this:
Spoiler: show
Image
timocomsmbx2345 wrote:can yo change the speed of mario itself when yo get the speed shroom?
Unfortunately no.
This API simply increases Mario's top speed to 16 pixels per frame (default is 6).

Although it's quite simply to change the top speed if you want it less than 16. For example if you want the top speed to be 10:

Code: Select all

	if player.speedX > 10 then
		player.speedX = 10
	elseif player.speedX < -10 then
		player.speedX = -10
	end

User avatar
timocomsmbx2345
Ninji
Ninji
Posts: 826
Joined: Sat Feb 06, 2016 1:44 pm
Current Project: i dont even know anymore. . . .
Chat Username: same as my username
Contact:

Re: Speed Shroom API

Postby timocomsmbx2345 » Mon Jun 26, 2017 6:37 pm

TheDinoKing wrote:
Like this:
Spoiler: show
Image
give me the link!
SMBX 2.0 β4 is here!!! How about 2.0 β5?
ImageImage
Image
Meepyglobix wrote:DON'T SAY "38A??". OR I'll SHOOT YOU.
Spoiler: show
Image Thanks Pixelpest!!!!
Image
Image

User avatar
timocomsmbx2345
Ninji
Ninji
Posts: 826
Joined: Sat Feb 06, 2016 1:44 pm
Current Project: i dont even know anymore. . . .
Chat Username: same as my username
Contact:

Re: Speed Shroom API

Postby timocomsmbx2345 » Mon Jun 26, 2017 10:32 pm

I dont understand why but your apis dont seem to work on my pge editor.
SMBX 2.0 β4 is here!!! How about 2.0 β5?
ImageImage
Image
Meepyglobix wrote:DON'T SAY "38A??". OR I'll SHOOT YOU.
Spoiler: show
Image Thanks Pixelpest!!!!
Image
Image

TDK
Kamikaze Koopa
Kamikaze Koopa
Posts: 1384
Joined: Wed Nov 11, 2015 12:26 pm

Re: Speed Shroom API

Postby TDK » Tue Jun 27, 2017 8:58 am

timocomsmbx2345 wrote:I dont understand why but your apis dont seem to work on my pge editor.
Did you do everything in the instruction?

Did you make a new file called lunadll.lua and copy this into it?

Code: Select all

local speed_shroom = API.load("speed_shroom")


Return to “LunaLua”

Who is online

Users browsing this forum: SemrushBot [Bot] and 1 guest