Language…
5 users online:  BeeKaay, Daizo Dee Von, E623, Guido_Keller, krizeth - Guests: 239 - Bots: 451
Users: 64,795 (2,377 active)
Latest user: mathew

Air bubble refill by TheBiob

File Name: Air bubble refill
Submitted: 2016-08-11 07:04:33 AM by TheBiob
Authors: TheBiob
Tool: Asar
Requires Free Space: No
Bug Fix: No
Featured: No
Description: This patch will allow water bubbles you see in underwater levels to refill the air meter.
This patch will also disable the water bubbles that the player spawns in underwater levels so you need to spawn them with this or any other sprite that can spawn them.

Requested by maro

While it works fine, your method of getting bubble's clipping is terribly unoptimized in terms of speed.

I suggest you filling the clipping info in the .asm file. This is what you need to fill to get the bubble clipping.

- $04 should contain the X position, low byte.
- $0A, same as above, but high byte instead.
- $05 should contain the Y position, low byte.
- $0B, same as above, but high byte instead.
- $06 should contain the width of the collision box
- $07 should contain the height of the collision box.

You can look at $02A519 to see how SMW handles this if you want. Also, there's no need to change temporarily the extended sprite number by doing this.