Smbx 1.4.5: Why does this explosion not hurt?(fixed path 28)

Description: Report bugs of SMBX-38A here.
Forum rules: https://wohlsoft.ru/forum/viewtopic.php?f=64&t=1069
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

NESTED ERNEST M
Topic author, Count
Count
Avatar
NESTED ERNEST M
Topic author, Count
Count
Reputation: 71
Posts: 268
Joined: 23 Sep 2017
Location: Perú, Lima
Youtube channel URL

Post #1by NESTED ERNEST » 20 Jan 2020, 0:04

Create a variable called 's'.
Make the script run in the Level - Start event.
Make the player grab a npc block mushroom(npc 154 or 155 or 156 or 157) (smb2 tab (B)).

Why doesn't your explosion destroy a block(like id=4)?

Spoiler

Code: Select all

dim n as integer
do
   select case npc(char(1).grabbing).id
      case 154,155,156,157
      v(s)+=1
      if v(s)=16 then
         n=ncreate(134,npc(char(1).grabbing).x,npc(char(1).grabbing).y,6*(1-2*char(1).facing),-4+3*(keypress(-14)),0,0)
         n=getid(n)
         npc(n).ivala=315
         v(s)=0
      end if
   end select
   
   call sleep(1)
loop

"Advanced Value's implementation details may change as the version changes!"
Programming NPCs in SMBX-38A is fun:
That is me
Image
Image
Image
Image

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

Image

Return to “SMBX-38A Bug reports”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest