Cannons.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?
8lue Storm
Volcano Lotus
Volcano Lotus
Posts: 593
Joined: Thu Jan 18, 2018 9:53 am
Flair: its pronounced bluestorm

Cannons.lua

Postby 8lue Storm » Sun Jan 27, 2019 1:36 pm

A lib carefully made to reproduce the various airship/tank cannons in the Mario series into SMBX! Currently with 385 lines of useful code, this lib supplies all your needs for cannons. ah, I can already feel the danmaku coming.
GIFs:
Spoiler: show
Image
Image
Image
Image
Image
DOWNLOAD: I am planning on updating the code (its structure maybe isn't as good as it should be in my opinion), but any feedback is appreciated! Have fun!

Eri7
Banned
Posts: 1770
Joined: Sat Jan 28, 2017 4:48 pm
Flair: Good Foundation allows for strong Execution
Contact:

Re: Cannons.lua

Postby Eri7 » Sun Jan 27, 2019 1:46 pm

Sexy.. time for me to do it in 38A :D

ElectriKong
Posts: 4650
Joined: Mon Jun 06, 2016 4:32 pm
Flair: I have NO idea what to put here
Pronouns: he/him
Contact:

Re: Cannons.lua

Postby ElectriKong » Sun Jan 27, 2019 2:18 pm

Cannon balls are rather fast.
Last edited by ElectriKong on Sat Feb 02, 2019 7:11 am, edited 1 time in total.

8lue Storm
Volcano Lotus
Volcano Lotus
Posts: 593
Joined: Thu Jan 18, 2018 9:53 am
Flair: its pronounced bluestorm

Re: Cannons.lua

Postby 8lue Storm » Sun Jan 27, 2019 2:27 pm

Electriking wrote:
Sun Jan 27, 2019 2:18 pm
Cannon balls are rather fast.
Perhaps I didn't analyze the SMB3 speed well enough. I'll try to include a slower version when I update the code.

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: Cannons.lua

Postby MECHDRAGON777 » Sun Jan 27, 2019 3:32 pm

8lue Storm wrote:
Sun Jan 27, 2019 2:27 pm
Electriking wrote:
Sun Jan 27, 2019 2:18 pm
Cannon balls are rather fast.
Perhaps I didn't analyze the SMB3 speed well enough. I'll try to include a slower version when I update the code.
Are you sure it is not becuase of the gif speed?

PotatoMario
Shy Guy
Shy Guy
Posts: 5
Joined: Sun Aug 26, 2018 3:42 pm

Re: Cannons.lua

Postby PotatoMario » Sun Jan 27, 2019 4:14 pm

Nice, now i can make some sweet airship levels

ElectriKong
Posts: 4650
Joined: Mon Jun 06, 2016 4:32 pm
Flair: I have NO idea what to put here
Pronouns: he/him
Contact:

Re: Cannons.lua

Postby ElectriKong » Sat Feb 02, 2019 7:23 am

While the cannon ball speeds are alright (the GIF speed is misleading, you might want to try to fix that), this does have a couple of flaws.

1) The cannons make sounds even if they are off-screen. I don't know if there is a known way to fix this, but if there is, you should try to fix this.
2) The cannon balls hurt you when you jump on them (this is not how they are supposed work).
3) The red cannons don't work.

MmmMario
Monty Mole
Monty Mole
Posts: 127
Joined: Sun Aug 05, 2018 6:28 am
Flair: Yeet

Re: Cannons.lua

Postby MmmMario » Sun Feb 03, 2019 2:46 am

What happened to that snowball cannon you also made, 8lue? Will it eventually be released?

TheTrueMarioMaster
Blooper
Blooper
Posts: 199
Joined: Mon Mar 19, 2018 11:58 pm

Re: Cannons.lua

Postby TheTrueMarioMaster » Mon Feb 04, 2019 1:43 am

I notice the ordinary variant of cannons are missing (shown in the image below).
Image

litchh
Eerie
Eerie
Posts: 716
Joined: Sun Dec 29, 2013 6:10 am

Re: Cannons.lua

Postby litchh » Mon Feb 04, 2019 3:41 am

TheTrueMarioMaster wrote:
Mon Feb 04, 2019 1:43 am
I notice the ordinary variant of cannons are missing
Graphical changes is not a big deal. It can be easily replaced.

8lue Storm
Volcano Lotus
Volcano Lotus
Posts: 593
Joined: Thu Jan 18, 2018 9:53 am
Flair: its pronounced bluestorm

Re: Cannons.lua

Postby 8lue Storm » Mon Feb 04, 2019 6:44 pm

Electriking wrote:
Sat Feb 02, 2019 7:23 am
While the cannon ball speeds are alright (the GIF speed is misleading, you might want to try to fix that), this does have a couple of flaws.

1) The cannons make sounds even if they are off-screen. I don't know if there is a known way to fix this, but if there is, you should try to fix this.
2) The cannon balls hurt you when you jump on them (this is not how they are supposed work).
3) The red cannons don't work.
1) I could try and solve that for the next update, who knows.
2) I wasn't able to make them stompable, if anyone has a magical way, let me know.
3) It appears I may have forgotten to place the part where they change direction in the code, sorry for that.
MmmMario wrote:
Sun Feb 03, 2019 2:46 am
What happened to that snowball cannon you also made, 8lue? Will it eventually be released?
Only in my episode. If it, for some reason, fails, it will be released on its own.

MmmMario
Monty Mole
Monty Mole
Posts: 127
Joined: Sun Aug 05, 2018 6:28 am
Flair: Yeet

Re: Cannons.lua

Postby MmmMario » Sat Feb 09, 2019 10:06 pm

Ah ok 8lue. Thanks!

Eri7
Banned
Posts: 1770
Joined: Sat Jan 28, 2017 4:48 pm
Flair: Good Foundation allows for strong Execution
Contact:

Re: Cannons.lua

Postby Eri7 » Tue Feb 19, 2019 3:38 am

I had an idea for a new cannon, blue cannon which unlike the red ones, it shoots slow blue cannonballs. Also isn't it possible to make a 360 degrees rotating cannon? These are my ideas if you are wiling to expand on the scripts.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari