Language…
3 users online: Dr.Moe, Hayashi Neru, Heitor Porfirio - Guests: 59 - Bots: 127
Users: 58,010 (2,499 active)
Latest user: slavi

Conditional Sprite Spawner

SMW Sprites → Conditional Sprite Spawner

Submission Details

Name: Conditional Sprite Spawner
Author: JamesD28
Added:
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
Comments: 9 (jump to comments)
Rating:
5.0 (2 ratings)
No rating
Download 103.51 KiB | 516 downloads

Screenshots

View all

Comments (9)

bandicoot Link
HammerBrother Yes, the DDA blocks are blocks that I use on my hacks to create a dynamic dificulty.
Depending on the player's number lives they can find some extra powerups in the levels.
Something I created based on system existent on some Crash bandicoot games
Frank__ Link
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:

Code
Midway:
;;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
MarkAlarm 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.
Final Theory Link
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.
HammerBrother Link
Originally posted by bandicoot
This could very be used in my hacks in the place of mine clunky DDA blocks :D


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

F

I'm also dreading the troll levels that will inevitably be made with this.
dogemaster Link
F in chat for whoever moderates this
 quietmason Link
Wow! This looks incredibly versatile. Awesome job!