Language…
11 users online: akari1129, Alann64Z, brenosalves, Doopu, fanfan21, LindseyFelony, Nanashi, nogluhx, Scags, SMoki, wye - Guests: 238 - Bots: 120
Users: 70,841 (2,355 active)
Latest user: Alann64Z

lx5 presents: 🎈 [SUPER MARIO MAKER 2 - P-BALLOON RELEASE] 🎈 [NEW UPDATE] 🎈

SpriteSuper Mario WorldResource Release

  • Pages:
  • 1
  • 2
  • 3
  • 4
SUPER MARIO MAKER 2 - P-BALLOON V1.1



Download in video's description


Originally posted by Changelog
Changes:
- Mario now bounces off walls, ground and ceiling when going fast.
- Now compatible with slopes and interactable Layer 2
- Fixes showing glitched graphics upon grabbing the balloon item
- Changed its sprite slot when it inflates Mario
- Added an option to mute some SFX when Mario is inflated
- Added a debug option to show a small target.
- Added an option to stop fixing the camera on Mario when he's inflated
- Added an option to carry sprites when Mario is inflated
- Added missing palette file.


Code
;##################################################################################################
;# Super Mario Maker 2's P-Balloon
;# by lx5
;# 
;# A P-Balloon powerup inspired by Super Mario Maker 2's variant in its Super Mario World style.
;# It recreates the controls and behavior of the SMM2's one and it's contained in a single sprite.
;#
;# NOTES:
;# - THIS SPRITE ONLY WORKS ON SA-1.
;# - It fails to detect Layer 3 smashers.
;# - It doesn't work with solid sprites, however, it does work with platforms passable from below.
;# - Mario is NOT able to carry the powerup to another level or sublevel. The sprite will despawn
;#   the very moment Mario is not under the player's control.
;# - The sprite makes use of SA-1's Background Mode in order to rotate its graphics and uses
;#   4 Character Conversion DMA slots. Probably no one will have issues with this.
;# - If you want to create graphics for the Inflated Mario, you have to create an image and rip
;#   each frame separately with SNESGFX with the 4bpp Linear option selected.




If some of you are curious about how this powerup works internally, I have a gif for you:


As the image shows, there's a target that the sprite follows every frame, by using %CircleX() and %CircleY(), I managed to get a target that rotates around the sprite depending on the controller input. That target position is used in conjunction with the %Aiming() routine to calculate X and Y speeds. That allowed me to not reinvent the wheel to calculate speeds depending on the angle and gave me the oportunity to easily give it some inertia/friction when changing directions and be similar-ish to how it works in SMM2.
When an input to change direction is received, the sprite determines what's the shortest way to turn around to reach its location as soon as possible, just like in SMM2. I was making something overly complicated about something that could be done in a few steps.
And finally, slopes and layer 2 support was added in a wacky way. Turns out that setting the sprite's position to Mario's position before updating the sprite's positions gives me proper support to these things without making extra long code (I thought about adding slope's code into this thing...).


OLD VIDEO




🎈

awesome i get to see a balloon in c3

Benny Harvey RIP, miss you big man.

I hope I do get to see more, instead of some stationary P-Balloon. It does look good.

happy birthday 🎈


taking a guess you're gonna showoff some crazy mario maker 2 style p-balloon powerup implemented via your powerups patch. tell me i'm wrong.
Balloooon 🎈
P
P-B
Interesting idea here; considering Mario doesn't have to chase after this kind of P-Balloon unlike the original version of the sprite, this could be interesting for an area where Balloon Mario would be absolutely necessary.
Good thing you found a Magic Balloon!
User: Hinalyte / ID: 1553 ~ loading kotori.css
>gif doesn't loop properly
Originally posted by Hinalyte
>gif doesn't loop properly


That makes me want to make Tubular but a thousand times harder now...
I do pixels sometimes
I wonder what that P stands for


this thread is blowing up
My Youtube channel

Currently working on:
Project C

Finished project:
Probably shouldn't overly inflate this thread, hmm, alright, popping out
HOOTIN BALLONS
Jokes aside, will this have any different behaviors when Mario grabs it? Like he'll turn into the Mario Maker 2 version or something like that? Or is this just a regular P Balloon that doesn't fly off.


Edit: HAAAA I KNEW IT.
Rad sprite nonetheless.
  • Pages:
  • 1
  • 2
  • 3
  • 4

SpriteSuper Mario WorldResource Release