[NPC] [Updated on 2021.12.26] DKC Barrel Cannons V1.2.5

Description: You made a script? Submit it here to show your creation to the public, share, take reviews, provision of the help and support is here!
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

HengShao M
Topic author, Our friend
Our friend
Avatar
HengShao M
Topic author, Our friend
Our friend
Age: 21
Reputation: 63
Posts: 63
Joined: 8 Jan 2016
Tencent QQ

Post #1by HengShao » 8 Jun 2021, 14:33

Image
As you can see, they are barrel cannons from DKC series. It took me some time to script it in 38A…… There are 4 kinds of barrel cannons so far, they are respectively normal barrel, blast barrel, arrow barrel and rotatable barrel. You can adjust launch speed and other things by setting name to these barrel cannons. Enjoy it!

UPDATED ON 26TH DECEMBER 2021
Fixed some bugs and polished some details.
If you encounter bugs when using this script, please don't hesitate to report bugs to me on Discord (HengShao233#6802) or on QQ(849601735)!

The usage of this NPC:
Spoiler
Set name to NPC to customize what you want!
You can make any kind of barrel cannons move themselves with the help of npc-308.

Normal Barrel:
Spoiler
Name format: 0|00|000|00

Type|Launch Speed|Launch Time|Rotating Speed

Type:

0: The barrel will rotate in 4 directions.
1: The barrel will rotate without stopping and can be launched in any angle.
2: The barrel will rotate without stopping but can only be launched in 8 directions.
3: The barrel will rotate in 8 directions.

Launch Speed:

It decides the speed of player when launching out of the barrel.
If set to 00, its speed will become the default speed. The default speed is 15.

Launch Time:

It decides the flying time of player. To put it simply, how long the player can keep the launch speed.
If set to 000, the time will become the default time. The default time is 32 (frames).

Rotating Speed:

It decides the rotating speed of the barrel.
Only apply to type 1 and 2.

Other instructions:

If not set any name, the barrel will rotate in 8 directions. The launch speed and launch time of the barrel will be the default ones.
You can set its initial angle in advanced NPC settings.
The initial angle of type 0 and 3 must be multiple of 45.
The initial angle of type 1 and 2 can be any number.
If set left, barrel will rotate counterclockwise; if set right, barrel will rotate clockwise.

Blast Barrel and Arrow Barrel:
Spoiler
Name format: 00|000

Launch Speed|Launch Time

Launch Speed:

It decides the speed of player when launching out of the barrel.
If set to 00, its speed will become the default speed. The default speed is 15.

Launch Time:

It decides the flying time of player. To put it simply, how long the player can keep the launch speed.
If set to 000, the time will become the default time. The default time is 32 (frames).

Other instructions:

If not set any name, the launch speed and launch time of the barrel will be the default ones.
Set its launch angle in advanced NPC settings at will.

Rotatable Barrel:
Spoiler
Name format: 0|00|000

Type|Launch Speed|Launch Time

Type:

0: You can rotate this barrel at will and it can launch in any angle.
1: You can rotate this barrel at will but it can only launch in 8 directions.

Launch Speed:

It decides the speed of player when launching out of the barrel.
If set to 00, its speed will become the default speed. The default speed is 15.

Launch Time:

It decides the flying time of player. To put it simply, how long the player can keep the launch speed.
If set to 000, the time will become the default time. The default time is 32 (frames).

Other instructions:

If not set any name, the launch speed and launch time of the barrel will be the default ones.
Set its launch angle in advanced NPC settings at will.

Credit for GFX:
Spoiler
HengShao (For editing barrel GFX from DK: King of Swing and recoloring all relevant GFX)
Hoeloe (For signs GFX on the barrel)
FireSeraphim (For barrel effect GFX)

Special Thanks:
Spoiler
Slash-18
Mr.Cutter
Attachments
Barrel Cannon V1.2.5.rar
(70.82 KiB) Downloaded 74 times
Last edited by HengShao on 26 Dec 2021, 10:52, edited 4 times in total.
2333~ :huaji:
A SMBX-38A project I am working on:
Image

If you're interested in the project above, or just want to discuss SMBX, welcome to the Hel Studio Discord Server~ :
https://discord.gg/YS6bfysduC

Victor ManuelMR M
Count
Count
Avatar
Victor ManuelMR M
Count
Count
Age: 21
Reputation: 155
Posts: 241
Joined: 7 Feb 2018

Post #2by Victor ManuelMR » 23 Jun 2021, 17:24

HengShao wrote:Image
As you can see, they are barrel cannons from DKC series. It took me some time to script it in 38A…… There are 4 kinds of barrel cannons so far, they are respectively normal barrel, blast barrel, arrow barrel and rotatable barrel. You can adjust launch speed and other things by setting name to these barrel cannons. Enjoy it!

The usage of this NPC:
Spoiler
Set name to NPC to customize what you want!

Normal Barrel:
Spoiler
Name format: 0|00|000|00

Type|Launch Speed|Launch Time|Rotating Speed

Type:

0: The barrel will rotate in 4 directions.
1: The barrel will rotate without stopping and can be launched in any angle.
2: The barrel will rotate without stopping but can only be launched in 8 directions.
3: The barrel will rotate in 8 directions.

Launch Speed:

It decides the speed of player when launching out of the barrel.
If set to 00, its speed will become the default speed. The default speed is 15.

Launch Time:

It decides the flying time of player. To put it simply, how long the player can keep the launch speed.
If set to 000, the time will become the default time. The default time is 32 (frames).

Rotating Speed:

It decides the rotating speed of the barrel.
Only apply to type 1 and 2.

Other instructions:

If not set any name, the barrel will rotate in 8 directions. The launch speed and launch time of the barrel will be the default ones.
You can set its initial angle in advanced NPC settings.
The initial angle of type 0 and 3 must be multiple of 45.
The initial angle of type 1 and 2 can be any number.
If set left, barrel will rotate counterclockwise; if set right, barrel will rotate clockwise.

Blast Barrel and Arrow Barrel:
Spoiler
Name format: 00|000

Launch Speed|Launch Time

Launch Speed:

It decides the speed of player when launching out of the barrel.
If set to 00, its speed will become the default speed. The default speed is 15.

Launch Time:

It decides the flying time of player. To put it simply, how long the player can keep the launch speed.
If set to 000, the time will become the default time. The default time is 32 (frames).

Other instructions:

If not set any name, the launch speed and launch time of the barrel will be the default ones.
Set its launch angle in advanced NPC settings at will.

Rotatable Barrel:
Spoiler
Name format: 0|00|000

Type|Launch Speed|Launch Time

Type:

0: You can rotate this barrel at will and it can launch in any angle.
1: You can rotate this barrel at will but it can only launch in 8 directions.

Launch Speed:

It decides the speed of player when launching out of the barrel.
If set to 00, its speed will become the default speed. The default speed is 15.

Launch Time:

It decides the flying time of player. To put it simply, how long the player can keep the launch speed.
If set to 000, the time will become the default time. The default time is 32 (frames).

Other instructions:

If not set any name, the launch speed and launch time of the barrel will be the default ones.
Set its launch angle in advanced NPC settings at will.

Credit for GFX:
Spoiler
HengShao (For editing barrel GFX from DK: King of Swing and recoloring all relevant GFX)
Hoeloe (For signs GFX on the barrel)
FireSeraphim (For barrel effect GFX)

Finally we have a 38A version of this script.
Incredible.
Image
[1.4.5] - Dream Team at The Challenging Portals:
Image

fnafan8888888888 M
Count
Count
fnafan8888888888 M
Count
Count
Age: 20
Reputation: 34
Posts: 278
Joined: 30 Jun 2019

Post #3by fnafan8888888888 » 6 Jul 2021, 16:06

Yeah, incredible indeed, but what are the plx files? How to use them.

HengShao M
Topic author, Our friend
Our friend
Avatar
HengShao M
Topic author, Our friend
Our friend
Age: 21
Reputation: 63
Posts: 63
Joined: 8 Jan 2016
Tencent QQ

Post #4by HengShao » 6 Jul 2021, 18:11

fnafan8888888888 wrote:Yeah, incredible indeed, but what are the plx files? How to use them.
This is a kind of file that allows you to use Magic Patcher to apply some settings (including custom GFX, variable, script, etc.) it contains to a level. In this way, some complex script will be more easy to put in a level and use. You can download Magic Patcher in the TeaScript Index of this forum.
2333~ :huaji:
A SMBX-38A project I am working on:
Image

If you're interested in the project above, or just want to discuss SMBX, welcome to the Hel Studio Discord Server~ :
https://discord.gg/YS6bfysduC

SuperKoopa M
Citizen
Citizen
Avatar
SuperKoopa M
Citizen
Citizen
Age: 23
Reputation: 6
Posts: 8
Joined: 10 Dec 2014
Facebook YouTube Twitter

Post #5by SuperKoopa » 26 Dec 2021, 10:53

The Equipo Estelar community made a video with your scripts did. Thanks HengShao!

phpBB [youtube]

Original link: https://www.youtube.com/watch?v=AQcW1Qe8Ck0

Join to the new SMBX Community in Facebook! SMBX - Equipo Estelar
https://www.facebook.com/groups/smbxestelar

Last bumped by HengShao on 26 Dec 2021, 10:53.


Return to “Script submission”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest