Post #2by NESTED ERNEST » 5 Oct 2017, 6:22
You can sacrifice an npc, and graph it, the necessary properties to block the player's pass, put all possible resistances and put only the sword hurt.
You can put 2 of life and the sword deals 1 damage
Sacrifice npc script:
with npc (sysval (param1))
if .health <= 1 then
.friendly = 1
call nkill (sysval (param1), 0,0,0,0,0,0,0)
call tcreate (broken block sound event, 0)
FXCreate (30, .x, .y, -4, -4, 132, 4, 0, 0)
FXCreate (30, .x, .y, 4, -4, 132, 4, 0, 0)
FXCreate (30, .x, .y, -2, -4, 132, 4, 0, 0)
FXCreate (30, .x, .y, -2, -4, 132, 4, 0, 0)
end if
end with
so late?
Programming NPCs in SMBX-38A is fun:- That is me




- Special image
- yt-image-banner: https://yt3.ggpht.com/M_O1AzQEOJogSq5OJESIaA5kFLdbwdDNMihDOJkJgPiH7cOx-LWK41TU9GWzExmkmpn3EWYbJg=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj
- image-to-up: https://3.bp.blogspot.com/-Y-LrpIS2rqw/UCBTtk7k-pI/AAAAAAAABBs/qZuI0sCStkc/s1600/jean-baptiste+beaudelle+girafe++escargot.jpg
- image-to-left: https://us.123rf.com/450wm/trassnick/trassnick2007/trassnick200700002/152919781-el-marl%C3%ADn-negro-grande-salta-del-mar-pesca-extrema-del-pez-espada-negro-en-alta-mar-vacaciones-en-lo.jpg
- image-last-w: 1
ROCKMAN GIF IN SMBX 38A