Banner
C3 Voting ends in
19 HOURS, 1 MINUTE AND 6 SECONDS
Views: 875,493,464
Time:
30 users online: Ayami, crm0622, D2DEZEL, Duraner Hawkeye, FODDER, Frank__, GbreezeSunset, Hinalyte, Hooded Edge, jardeson01, K3fka, Koopster,  MarioFanGamer, MarioriaM, Medic,  Meirdent, Minuy600, Mirann, Natendo94, PlagueRatofDoom, Pokemon Hacker, Rilla Roo, RPG Hacker, scifi_h, SimFan96, SJandCharlieTheCat, supermargot, Swaguy14256, TheOrangeToad, yogui - Guests: 116 - Bots: 72 Users: 48,838 (2,493 active)
Latest: strong
Not logged in.
disappear_block v1,0 by EternityLarva
Forum Index - Valley of Bowser - Moderation Questions - Blocks - disappear_block v1,0 by EternityLarva
Pages: « 1 » Link
File Name: disappear_block v1,0
Submitted: by EternityLarva
Authors: EternityLarva
Act As: 130
Includes GFX: Yes
Description: It disappears when it gets on the block.
It disappears even if it passes by triangle block.
Screenshots:
It's a really cool block with interesting set ups but it unfortunatelly has got one fatal flaw: It does not check if all sprites slots have been filled (see spawn_sprite.asm: check for carry and return if carry is set). In that case, the sprite fails to spawn which leaves an invisible solid block.
Side note: SMW already features an invisible solid tile, tile 152 (used for bounce blocks) so including one in the Map16 tile is redundant.

In general, using regular sprites for these blocks is pretty overkill in my eyes and a better option would be to use a either cluster sprite (recommend) or even special sprites dedicated for pure block changing similar to these blocks (I call these "Map16 sprites", my personal preference, requires UberASM).
Side note: If you want to, you can make the sprite just change to the next Map16 after X frames Y times. That way, you don't need a graphics code for the sprite (not that you really can with Map16 sprites). It also has got more consistent graphics as the position is sprites wouldn't be shifted downwards by 1 tile and the palette also is more consistent.
Another side note: It's preferrable to have the block set the sprite's stats (recommend for cluster sprites and Map16 sprites) as that's a common practice in coding. The accumulator A has got the slot of the freshly spawned sprite, btw. (once again, see spawn_sprite.asm).

Moderated with:
  • SNES9x 1.60
  • Lunar Magic 3.03
  • SA-1 pack 1.31
  • GPS 1.41
  • PIXI 1.2.9


--------------------
Okay, my layout looks ugly.
File Name: disappear_block v2.0
Submitted: by EternityLarva
Authors: EternityLarva
Act As: 130
Includes GFX: Yes
Description: It will disappear when you get on the block.

-update-
v2.0
sprite -> uberasm

Screenshots:
Although sprite limitations aren't an issue now, there appeared a different flaw: NMI overflow. SMW is pretty bad at changing multiple blocks at the same time which is a problem with the disappear block sprite because they change their tile every. Single. Frame. The result: The top of the screen turn black not just for one frame (which is quite acceptable as it isn't noticable at the first glance) but it's a no-no for a longer time.
The solution is to either use cluster sprites (my recommend solution) or change the tile only after a set amount of frames (how I would have done it).

I also recommend you to put codes for UberASMTool as that's our UberASM standard.

--------------------
Okay, my layout looks ugly.
Pages: « 1 » Link
Forum Index - Valley of Bowser - Moderation Questions - Blocks - disappear_block v1,0 by EternityLarva

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2021 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks