Banner
Views: 932,950,198
Time:
20 users online:  Alex_X8, FrozenQuills, Fullcannon, Golden Yoshi, Green Jerry, gui, Infinity, JupiHornet, kiki79250, killerZoreo, Koopster, KungFuFurby,  Lazy, LeedleLee337, Luffcha18, MastaBuizness, Nipitah, Ondore's Lies, playagmes169,  quietmason - Guests: 115 - Bots: 178 Users: 52,072 (2,111 active)
Latest: KiwisOn
Tip: When making your overworld, mix the terrain up! Add decorations to the overworld. Don't leave large empty grass or sea regions. As an example, angled land and multiple colors look much more interesting than square land and flat, plain colors.
Not logged in.
How do I implement a beam/laser?
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - How do I implement a beam/laser?
Pages: « 1 » Link
Like this where the laser takes time to get to its full length. How do I implement that?

I'm using SA-1 and want to use Cluster Sprites for the laser. I have this



but I don't know how to make it continuous like a laser or beam should be, and I don't know that that patch manages to do it.

Click the character on the right side of my layout to visit my Discord server and discuss and play and look at and get updates and sneak peeks of the games and other things I'm making.

The authors of these 2 My Little Pony fan games have removed their games from the Internet.
Rise of the Clockwork Stallions has been updated! Download My Little Pony: Rise of the Clockwork Stallions DX: Director's Cut and My Little Pony: Magic Shards now! Spread this link!

Does it have to be a series of cluster sprites, or can it be one long normal sprite like the electricity in this? I'd think that the latter would be easier.
Originally posted by imamelia
can it be one long normal sprite like the electricity in this? I'd think that the latter would be easier.

Hmm, I wasn't thinking about making the beam like that, but maybe I could make it like that. How does that Mechakoopa sprite implement and handle its laser? I would still prefer to use Cluster Sprites, though.

Click the character on the right side of my layout to visit my Discord server and discuss and play and look at and get updates and sneak peeks of the games and other things I'm making.

The authors of these 2 My Little Pony fan games have removed their games from the Internet.
Rise of the Clockwork Stallions has been updated! Download My Little Pony: Rise of the Clockwork Stallions DX: Director's Cut and My Little Pony: Magic Shards now! Spread this link!

I don't think it's very reasonable to make something like that with sprite tiles at all. The SNES has a hard limit of 256 sprite pixels per scanline, after that any further sprite pixels will simply not be rendered until the next scanline. The mecha koopa's lightning is 128 pixels wide, I think, and can already sometimes cause problems due to the sprite limit. There's a reason a beam like this (blizzard buffalo, mega man x3) is just 1 color: it's made with windowing HDMA rather than sprite tiles (only the front and back of the beam are sprite tiles).

You can use sprite tiles to make this, but you're really fighting against the hardware. If you must, you should make the beam shorter to avoid sprite limit. Depending on how you make the beam, you might want it to be its own entity (like the mechakoopa does) or be completely controlled by the source entity (which i would guess blizzard buffalo's beam is). You *can* use cluster sprites but that seems like an awfully clunky solution. The beam is almost certainly just going to be a graphical effect with a single hitbox, which isn't really what cluster sprites are good at.

allow shy guy emojis in post footers you cowards!


One option to avoid the sprite scanline limit is to just draw every other tile and alternate between sets of tiles each frame, similar to what Sonic does with the top of the water in its water levels. You can see the effect very clearly in that video due to the video not being rendered at 60fps; at full 60fps, the tiles would instead appear transparent due to alternating between visible and not visible every other frame.

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - How do I implement a beam/laser?

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