Page 1 of 1

Cannons.lua

Posted: Sun Jan 27, 2019 1:36 pm
by 8lue Storm
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:
Spoiler: show
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!

Re: Cannons.lua

Posted: Sun Jan 27, 2019 1:46 pm
by Eri7
Sexy.. time for me to do it in 38A :D

Re: Cannons.lua

Posted: Sun Jan 27, 2019 2:18 pm
by ElectriKong
Cannon balls are rather fast.

Re: Cannons.lua

Posted: Sun Jan 27, 2019 2:27 pm
by 8lue Storm
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.

Re: Cannons.lua

Posted: Sun Jan 27, 2019 3:32 pm
by MECHDRAGON777
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?

Re: Cannons.lua

Posted: Sun Jan 27, 2019 4:14 pm
by PotatoMario
Nice, now i can make some sweet airship levels

Re: Cannons.lua

Posted: Sat Feb 02, 2019 7:23 am
by ElectriKong
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.

Re: Cannons.lua

Posted: Sun Feb 03, 2019 2:46 am
by MmmMario
What happened to that snowball cannon you also made, 8lue? Will it eventually be released?

Re: Cannons.lua

Posted: Mon Feb 04, 2019 1:43 am
by TheTrueMarioMaster
I notice the ordinary variant of cannons are missing (shown in the image below).
Image

Re: Cannons.lua

Posted: Mon Feb 04, 2019 3:41 am
by litchh
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.

Re: Cannons.lua

Posted: Mon Feb 04, 2019 6:44 pm
by 8lue Storm
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.

Re: Cannons.lua

Posted: Sat Feb 09, 2019 10:06 pm
by MmmMario
Ah ok 8lue. Thanks!

Re: Cannons.lua

Posted: Tue Feb 19, 2019 3:38 am
by Eri7
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.