Language…
18 users online: autisticsceptile1993, bandicoot, DivineSwage, Dominicentek, E-man38, Evernn, Flaming Hot Toons, g3cko_486, Green, h.carrell,  Hazel, JetWing34, neidoodle, Ragey, RedYoshi87, signature_steve, snoruntpyro,  Telinc1 - Guests: 106 - Bots: 186
Users: 62,812 (2,617 active)
Latest user: A_Sandwich

Camera-Tracking Sprite Spawner

OpenASM

Name:
Camera-Tracking Sprite Spawner

Type:
Sprite

Description:
A sprite that can spawn another sprite that the camera will follow instead of Mario until the sprite dies, at which point the camera will stop moving.
It should also have extra byte defines that determine what sprite should be spawned, and how much of an offset the center of the camera should have from the spawned sprite (one for horizontal offset, another for vertical offset)

References:
idol and lolyoshi's KLDC 2022 level which used a mechanic similar to this. Link to video here
"What's 9 + 10?"
-Jah
Not a sprite, but abwärts made this UberASM which might fulfill your request:


My Mode 0 guide.

My Discord server. It has a lot of archived ASM stuff, so check that out!

I assume I put the number of the desired sprite in the !spriteNr define? Because that's what I did, and it did not work as I assumed it would, where the camera followed the designated sprite instead of Mario
"What's 9 + 10?"
-Jah
Oh yeah, you do put the sprite number in that define, but apparently custom sprites aren’t supported… whoops
My Mode 0 guide.

My Discord server. It has a lot of archived ASM stuff, so check that out!

I appreciate your attempt to help, but some people on the discord server told me that the ASM you sent me was poorly optimized and not very robust.
Again, thanks for replying, but I'd rather want a custom sprite that does what that UberASM does but in a more efficient fashion.
"What's 9 + 10?"
-Jah
Originally posted by Anas
Oh yeah, you do put the sprite number in that define, but apparently custom sprites aren’t supported… whoops


Oh, I'm quite sure custom sprites can be used with that UberASM code; ModernKiwi, just out of curiosity but were you attempting to use this code with a custom sprite? If so, try changing LDA $9E,x to LDA !7FAB9E,x (just don't put the semi-colon after the x here); that might do the trick for you (I'm not 100% sure though, as I never tried this code).
Originally posted by Knight of Time
Originally posted by Anas
Oh yeah, you do put the sprite number in that define, but apparently custom sprites aren’t supported… whoops


Oh, I'm quite sure custom sprites can be used with that UberASM code; ModernKiwi, just out of curiosity but were you attempting to use this code with a custom sprite? If so, try changing LDA $9E,x to LDA !7FAB9E,x (just don't put the semi-colon after the x here); that might do the trick for you (I'm not 100% sure though, as I never tried this code).

I was not trying to use a custom sprite, just a Line-Guided Fuzzy, and then a Red Koopa. Both times Mario disappeared before dying on the left side of the screen
"What's 9 + 10?"
-Jah
Your request has been automatically canceled and archived as it is older than 30 days and has not been claimed. More information on why this happens can be found here.

Please feel free to re-request it again by making a new thread, or request something else.

OpenASM