Wrong trampoline animations

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

Post #1by Lx Xzit » 11 Sep 2016, 1:30

"No, again this?" yes, sorry. :(

So I've seen a error in the trampoline animations but I never understood why exactly. Today I made some few experiments I discover why the animations of the trampolines are wrong in SMBX 1.4.3.

The trampolines are more complex than I expected. The problem isn't the framespeed itself, it's because in SMBX 1.3 the frames are syncronized with the player Y speed.

Here are two comparisons of the trampolines in SMBX 1.3 and SMBX 1.4:

Spoiler
Image
Image

So in SMBX 1.3 we can note two things:

- The hitbox of the trampoline is the half of its normal size (16-pixels), when the player touch the half part of the trampolines it will make a bounce and play the third frame of the trampoline.
- The 16 pixels in the top part displays the second animation if the player has Y speed > 0

Spoiler
Image

In SMBX 1.4.3 it work on this way:
- It takes in count the 32 pixels height of the hitbox, when the player touch the trampoline it display the other animations.
- The second frame of the trampoline displays two times, when it only should display one time.

I guess with this photo I can explain better, the yellow part displays the 2nd frame if the player has Y speed > 0 (only when its descending nor ascending), the pink part makes the bounce to the player and displays the third animation:

Spoiler
Image

With the orange trampolines its the same, they checks if the NPC/player has Y speed (or X speed for the vertical ones) to displays the 2nd animation and they takes in count the half of the hitbox to make a bounce. :P

In case the horizontal trampolines still depends of the framespeed, I'd suggest change the animation speed to 1 instead 2 (I was wrong in my last post). Here's a ugly test level I made, please test it using SMBX 1.3:

Trampolines.lvl
(5.21 KiB) Downloaded 233 times
VISIT MY YOUTUBE CHANNEL! LX XZIT
Join our 38A Discord server!

Image

Alvespires M
Count
Count
Alvespires M
Count
Count
Age: 22
Reputation: 17
Posts: 228
Joined: 20 Aug 2016
Location: Koopa Troopa Beach

Post #2by Alvespires » 11 Sep 2016, 4:59

Oh so many bugs you have found.so many topics.im not trying to say for you to stop but...a normal person wont notice so many Little bugs as you
Not really up to it.

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 #3by Lx Xzit » 11 Sep 2016, 6:22

I always think these minor details are important!
VISIT MY YOUTUBE CHANNEL! LX XZIT
Join our 38A Discord server!

Image


Return to “Troubleshooting”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest