Views: 890,320,810
4 users online: Bongo, Infinity, PokerFace,  Slash Man - Guests: 38 - Bots: 67 Users: 49,926 (2,331 active)
Latest: LeSoulforged
Tip: Check for glitched graphics in all frames of an object or sprite (e.g., the ON/OFF block changing, etc.).
Not logged in.
Details for Cave-In Generator
SMW Sprites - Cave-In Generator Link - Show random
File Name: Cave-In Generator
Authors: Telinc1
Tool: PIXI
Type: Cluster
Dynamic: No
Disassembly: No
Includes GFX: Yes
Description: A generator which will shake the screen and randomly spawn 16x16 or 32x32 blocks which will fall down. They can optionally hurt Mario.

This version uses cluster sprites for the blocks, which means they won't take up standard sprite slots and will cause way less slowdown.You can find the standard sprite version here.

Make sure to set the cluster sprite number of the block (cluster/caveinblock.asm) in the generator's ASM file (generators/caveingen.asm)! Use the number from list.txt.

Check the ASM files for customization options. By default, the blocks will treat all Map16 tiles on page 1 (and ones which act like them) as solid. Note that the blocks don't interact with layer 2.
Tags: block, blocks, cave, cavern, cluster, cluster sprites, effect, enemy, fall, falling, generator, lorom, rock, rocks, sa-1, shake
Rating: No rating
Download: Download - 7.34 KiB
Using cluster sprites for the cave in generator is a great idea. I mean, the reasons are obvious: The amount of the blocks falling down is relatively high.

That, however, causes a couple limitations:
  • They use a simplified interaction.
    • The biggest one is that the block interaction is only focused at one point which means that the rocks can actually fall through blocks even when they shouldn't with a "proper" object<->sprite hitbox
    • Another limitation is that only tiles with an acts like setting of 1 (which contains tiles where you, sometimes only sprites, including 1F0) or higher can block the rocks. The problem is that coins and invisible ?-block won't block them when the blue P-switch is activated and in contrast, Rocks see brown blocks and munchers as solid tiles even when the blue and silver P-switch is activated, respectively.
    • Layer 2 interaction is also non-existant for them.
  • And finally (the biggest limitation), be careful that cluster sprites aren't really made to be 32x32 large. This means, instead to use a hardcoded sprite tile index, they reserve them dynamically which may end up them using already used sprite tiles, cauing disappearing sprite tiles. Not even NMSTL can fix that.

These were a couple notes when you want to use this sprites. Other then that, I haven't found any issues.
Posted by:  MarioFanGamer - | Link
Fixed a major issue with object interaction. The block cluster sprite now resolves "acts like" settings, which makes it a lot easier to work with.
Made the sprite despawn earlier so it doesn't poke in from the top of the screen when it reaches the bottom.
Posted by:  Telinc1 - | Link

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


Follow Us On

  • YouTube
  • Twitch
  • Twitter


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