Smbx -1.4.5: When a block is destroyed.

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

NESTED ERNEST M
Topic author, Marquis
Marquis
Avatar
NESTED ERNEST M
Topic author, Marquis
Marquis
Reputation: 29
Posts: 194
Joined: 23 Sep 2017
Location: Perú, Lima
Website

Post #1by NESTED ERNEST » 10 Jan 2020, 22:00

When a block is destroyed shouldn't its hide property be equal to one? (because I can't detect it)
block(x).hide
Last edited by NESTED ERNEST on 17 Jan 2020, 7:32, edited 1 time in total.
Programming NPCs in SMBX-38A is fun:

ROCKMAN GIF IN SMBX 38A

Image

Lx Xzit M
Moderator
Moderator
Avatar
Lx Xzit M
Moderator
Moderator
Reputation: 326
Posts: 702
Joined: 9 Nov 2015
Website

Post #2by Lx Xzit » 10 Jan 2020, 22:05

Instead of using "hide" for destroyed blocks, I'd prefer if 38a added the property ".destroyed" for blocks.
VISIT MY YOUTUBE CHANNEL! LX XZIT
Join our 38A Discord server!

Image

NESTED ERNEST M
Topic author, Marquis
Marquis
Avatar
NESTED ERNEST M
Topic author, Marquis
Marquis
Reputation: 29
Posts: 194
Joined: 23 Sep 2017
Location: Perú, Lima
Website

Post #3by NESTED ERNEST » 10 Jan 2020, 22:56

What happens when I do an iteration also counts those who are gone (or those that were destroyed)

I didn't say that 'hide' is used to destroy blocks. It is used State=-1 or 2 or when it is harmed by an external force(like Mario).

It seems to me that 'hide' is always zero unless you write it equal to one(only by script).
Programming NPCs in SMBX-38A is fun:

ROCKMAN GIF IN SMBX 38A

Image

NESTED ERNEST M
Topic author, Marquis
Marquis
Avatar
NESTED ERNEST M
Topic author, Marquis
Marquis
Reputation: 29
Posts: 194
Joined: 23 Sep 2017
Location: Perú, Lima
Website

Post #4by NESTED ERNEST » 17 Jan 2020, 7:31

Lx Xzit wrote:Instead of using "hide" for destroyed blocks, I'd prefer if 38a added the property ".destroyed" for blocks.

I've been testing more, and to know if a block is destroyed, it's just to check if block (b).state=2(condition) and not the block(b).hide=1,

In the report I was making 'block(x).hide' when a block is destroyed automatically be 1.
Programming NPCs in SMBX-38A is fun:

ROCKMAN GIF IN SMBX 38A

Image


Return to “Bug reports”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest