Better block-hit (fixed patch 25)

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

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

Post #1by Lx Xzit » 18 Nov 2019, 9:06

When you hit a block, it activates a timer that won't let the block be hit until the timer expires (let's call this noHitTimer for convenience).
The problem with noHitTimer is that it lasts a bit too long, which will make the block ignore some hits, for example:
Image

Note how the block only gets hit every two jumps.

So in order to fix this, I want to propose this:

Set noHitTimer to 10 when the block gets hit
Set the speed of the block to 3.25 in the frames 1 to 4
Set the speed of the block to 3.25 in the frames 4 to 8
Set the speed of the block to 0 in the frame 9

This is how it would look with these values:
Image
(It's a bit faster, more like SMAS)

I made an npc simulate this block-hit effect for test purposes:
blockhit-test.zip
(2.26 KiB) Downloaded 122 times
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