Smbx 1.4.5: 2 weird/questionable stuff(fixed path 31)

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 » 29 Aug 2020, 8:47

1)
In the debugger window, the npc counter occurs that when an immortal npc is killed with its property alive=0 it is not discounted, but this does update when a normal npc dies, weird isn't it?

2)
I can use the itrcreate to iterate all the effects but I can't even set a new speed to them.

Code: Select all

 v(a)=itrcreate(6,0,char(1).x-64,char(1).y-64,128+char(1).pwidth,128+char(1).pheight)
   do
      v(b)=itrnext(v(a))
      if v(b)=0 then exit do
      
      effect(v(b)).ysp=-8
   loop
   call berase(0,v(a))
Last edited by NESTED ERNEST on 29 Sep 2020, 4:36, edited 4 times in total.
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

Lx Xzit M
Moderator
Moderator
Avatar
Lx Xzit M
Moderator
Moderator
Reputation: 402
Posts: 757
Joined: 9 Nov 2015
Website

Post #2by Lx Xzit » 29 Aug 2020, 18:37

NESTED ERNEST wrote:1)
In the debugger window, the npc counter occurs that when an immortal npc is killed with its property alive=0 it is not discounted, but this does update when a normal npc dies, weird isn't it?

It happens with all NPCs overall. It seems .alive doesn't completely kills NPCs, so you've got to use nkill instead.
VISIT MY YOUTUBE CHANNEL! LX XZIT
Join our 38A Discord server!

Image


Return to “SMBX-38A Bug reports”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest