Smbx 1.4.5: Mistakes 13(2)

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: 193
Joined: 23 Sep 2017
Location: Perú, Lima
Website

Post #1by NESTED ERNEST » 10 May 2020, 8:05

1) The unconscious jump

1.1) When a level is executed and the player starts in the air and while in the air he presses the jump button until he steps on a block(char(1).stand=1) it jumps unintentionally and does not even sound.


1.2) When the player runs and falls, and in the middle of the fall he presses the jump button and does not release it until he steps on a block(char(1).stand=1) the player jumps unintentionally.
Spoiler
aa2.gif
aa2.gif (177.71 KiB) Viewed 69 times

2)
I had made a post of a suggestion that solved the custom non-standard dimensions, but now after experimenting more it is no longer so necessary: now it only fails when the player gets hurt:

To solve this, make the program not execute the standard values of the player's pwidth and pheight as long as the status property hasn't changed due to the hit(and the player's id has not changed).

Like when the player is:
id = 3, hitpoint = 3 and status = 2
and after one hit it is:
id = 3, hitpoint = 2 and status = 2
He has the same status; and it can also be by sysval(playerbasestatus)

In other words, only run(or update) the pwidth and pheight values when necessary.
Programming NPCs in SMBX-38A is fun:

ROCKMAN GIF IN SMBX 38A

Image

Return to “Bug reports”