Banner
Views: 843,190,056
Time:
18 users online: 7 up, Amine Retro,  Deeke, Incognito, JakkyShane, kamekku14, Katerpie, Kusamochi, Kusrry, Lsh0426, Medic, MegaSonic1999, PokerFace,  RussianMan, Sancles, shane, SkyeLondon18, WhiteYoshiEgg - Guests: 52 - Bots: 66 Users: 46,315 (2,880 active)
Latest: AmazingAlien
Tip: If you edit level 0, make sure you also edit level 100. Both of them are used for the bonus game.Not logged in.
Killing sprites with blocks? [Solved]
Forum Index - SMW Hacking - SMW Hacking Help - Killing sprites with blocks? [Solved]
Pages: « 1 »
Hello. I'm working on a thing that spawns sprites going left, and I need a block that kills those sprites. I tried using STZ $14C8,x (or $64C8 in this case because I'm using SA-1) but that didn't do anything. I have a feeling it's because that only works when you're coding a sprite rather than a block.


What I do know is that I need to set their state to #$00 so they disappear. Could someone help me, please? Thanks a lot.
Originally posted by SA-1 Readme
BE VERY CAREFUL WHEN HANDLING SPRITE ADDRESSES!
ARUJUS'S PATCH MOVE ALL OF THEM TO ANOTHER AREA.
Please check docs\sprite remap.txt for more details!
I already know you add 6000 to long addresses. I'm having trouble with the actual code.
Alright, lets try this again.


Originally posted by SA-1 Readme
BE VERY CAREFUL WHEN HANDLING SPRITE ADDRESSES!
ARUJUS'S PATCH MOVE ALL OF THEM TO ANOTHER AREA.
Please check docs\sprite remap.txt for more details!


Just a few lines from the file so you'll understand. I don't think quoting the entire thing is necessary.

Originally posted by sprite remap.txt
Sprite Remap:
-> Each address is 22 bytes long
$XX:3200-$XX:3215 -> SMW's $7E:009E !
$XX:3216-$XX:322B -> SMW's $7E:00D8 !
$XX:322C-$XX:3241 -> SMW's $7E:00E4 !
$XX:3242-$XX:3257 -> SMW's $7E:14C8
So from what I understand, $14C8 was remapped to $3242, which uses 22 bytes? Correct me if I'm wrong.
Yes. SA-1 moves the sprite's ram to a different area and adds sprite slots, up to 22. But that isn't really important in this case. Check that file for the new ram addresses you need to use when dealing with sprites. I.E STZ $14C8,x is now STZ $3242,x
Alright, thanks. Just to make sure, would this:
Code
SpriteH:
	STZ $3242
	RTL
SpriteV:
	STZ $3242
	RTL

Make ANY sprite (including custom ones) disappear?
Yes, but it has to be STZ $3242,x. Just STZ $3242 alone would only make a sprite using that slot disappear, ignoring the other 21 slots. the ,x makes sure it uses the entire table for any sprite in any slot.
Okay, thank you. You were very helpful!
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - Killing sprites with blocks? [Solved]

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

Copyright © 2005 - 2020 - 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