Views: 932,777,274
14 users online: Ahrion, Batata Douce,  BeeKaay, containercore, Dippy, Ersanio, Gabriel Nascimento, jc5500, Los7Dreamer, MagicalCandyBar, mikairanutshack, Nciktendo, Ultima, VenexG - Guests: 93 - Bots: 211 Users: 52,066 (2,106 active)
Latest: Steffi4689
Tip: Test your levels as all forms of Mario that can access it (such as different powerups in your hack, or Yoshi).
Not logged in.
Details for Conditional Sprite Spawner
SMW Sprites - Conditional Sprite Spawner Link - Show random
File Name: Conditional Sprite Spawner
Authors: JamesD28
Tool: PIXI
Type: Standard
Dynamic: No
Disassembly: No
Includes GFX: No
Description: This sprite acts as a spawner, and will spawn 1 of 2 sprites when a certain condition is met. You can define the sprite numbers, whether they're vanilla or custom, the condition that is used to determine which sprite to spawn, the logic for meeting the condition if it takes a parameter ("Equal to" or "Greater than or equal to"), their spawn state, and XY offsets with the extra bytes. You can also optionally enable an additional 12 extra bytes (for a total of 24), and set extra bytes for the spawned sprites and set initial speeds by using the "extra bytes extender" sprite included.

There are a lot of configurable settings for this sprite, all of which are described in detail in the spawner's .asm file. I strongly recommend reading through it thoroughly first, to make using the spawner easier. 2 screenshots are also included in the zip to demonstrate how the extra bytes could be set up.
Tags: conditional, extra bytes, lorom, sa-1, spawner, sprite
Rating: 5.0 (Votes: 2)
Download: Download - 103.51 KiB
Note for anyone using the Fast Retry patch along with this.

If you are using the Midway Cleared condition you will probably need to change the code used to detect if the Midway has been cleared. I changed it to this and it seems to work fine:

;;start of added code
LDX $13BF|!addr
LDA $1EA2|!addr,x
AND #$40
;;end of added code
LDX $15E9|!addr
;;LDA $13CE|!addr - this is the original lda that no longer works when you use the retry patch
STA !ConditionTrue,x
Posted by: Frank__ - | Link
Moderated with:
Lunar Magic 3.21
Pixi 1.31
SA-1 Pack 1.32 (also tested without)
Snes9x 1.60

Had to submit an updated zip folder, since the .json files were incompatible with the latest version of pixi. Regardless of that, all of the options I tried out worked out well and it was fairly easy to use, once I got the hang of it. Definitely a ton of options to use and nothing I tried broke, so it's accepted. The added screenshots are also incredibly useful, so thanks for including that.
Posted by:  MarkAlarm - | Link
Final Theory
I could see like an NPC who says, you need 50 coins to pass and then you have to go and collect 50 coins and come back and when you do the NPC is gone and lets you pass.
Posted by: Final Theory - | Link
Originally posted by bandicoot
This could very be used in my hacks in the place of mine clunky DDA blocks :D

DDA blocks?
Posted by: HammerBrother - | Link
This could very be used in my hacks in the place of mine clunky DDA blocks :D
Posted by: bandicoot - | Link
Originally posted by dogemaster
F in chat for whoever moderates this


I'm also dreading the troll levels that will inevitably be made with this.
Posted by: Bernardo - | Link
F in chat for whoever moderates this
Posted by: dogemaster - | Link
Wow! This looks incredibly versatile. Awesome job!
Posted by:  quietmason - | 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