
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!

