The basic code to spawn a sprite is this:
Replace the SpriteNumber define with the sprite you want to spawn, and SpriteState with the state you want it to be in (01 for most sprites, 09 with sprite 4-7 for shells and with sprite 53 for throwblocks). Then set the position in place of the XLo/XHi and YLo/YHi values, or you can set it to be equal to an address as well.
You can stick this in LevelASM; you don't have to use a sprite. If you still want to, though, then to spawn it at the sprite's position you'd use this varient
Also, for spawning a throwblock, if you want it to still disappear after a certain amount of time, add this between the last JSL and the EndSpawn label:
(or you can change the #$FF to however many frames you want it to last)
Professional frame-by-frame time wizard. YouTube
- SMW Glitch List
- SMW Randomizer