Smbx 1.4.5: script "problematic".

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 » 11 Feb 2020, 0:38

I made a recommendation of this, but now I try to make a script that does at least something, this may not be a bug but it is very problematic.

Here is the script/level:
zzz.lvl
(7.23 KiB) Downloaded 135 times

 
In the level script I put 'v(nharm)=npc(b).id' I put the .id to make it easy for me to see what happens, the script tries to send the id of the npc that harms the player, In my recommendation this would make it more useful than just that.

Why is it problematic?:
* I must write all the npc that do not count in the list, which is a very long list (the npc can change properties depending on the level and would change the list)
* If in case the player collides with two npc for example the npc 215 (which has no collision but is friend = 0) with another enemy npc, the situation is dependent on which element (npc) was placed first in the level, I already I tested it
* If I am colliding with an npc block or grabbing an npc there may be problems.

In this example you can fail:
the ghost is the npc-44, the tube is the npc-67 and the block mushroom is the npc-155, look at the gif image.
The nharm variable should only return 44 (id of the npc that harms the player)
Spoiler
da0.gif
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