[NPC] Sniper Laser

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 » 27 Sep 2022, 10:52

Image
This is a script of the NPC that can aim at the player and release a lase after a certain time. This NPC is inspired by an indie game called 'Celeste' in a way. I wanted to recreate it in SMBX before but I didn't put it into practice until now.
This script uses npc-339 (Fire blasting out of SMB3 Burner) and npc-340 (SMB3 Burner, a.k.a. Flamethrowers), which two are necessary to be used because of the specific characteristics of these two NPCs.

USAGE OF THE NPC
Spoiler
You can customize this NPC's AI by setting its name! There're 6 kinds of parameters to be set.

Name Format: 000|000|000|000|000|000
ChargeTime|AimingTime|WarningTime|LasingTime|DelayTime|Range

ChargeTime: It decides the time line of sight appearing without the sign of warning.
AimingTime: It decides the time Laser aims at the player.
WarningTime: It decides the time line of sight flashing before lasing.
LasingTime: It decides the time the laser lasing.
DelayTime: It decides the time to wait after the last lasing and before the next attack.
Range: The range of laser attacking the player.

There're examples of how to setting its AI in the showcase level.

CREDITS
Spoiler
Script made by HengShao.
Original Sniper Laser GFX made by Sednaiur and edited by HengShao.
Special thank to Kaizo_Zhang for Laser Count SFX.

If there is any bug, please report it in this post, thanks!
Attachments
Sniper Laser.rar
(234.25 KiB) Downloaded 30 times
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

Return to “Script submission”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest