38 users online: Anas, Big Brawler, Blizzard Buffalo, Chearii, cyber47509, gab85, Golden Yoshi, Green, h.carrell,  icrawfish, JezJitzu,  KungFuFurby, LadiesMan217, lo fang 123,  Losoall, Mario_B, Mellonpizza, Mohamad20ZX,  Noivern, oliver1, Phyll, PropellerKaps, Rykon-V73, Samie Zuccati,  Segment1Zone2, SFan, simon.caio, Skewer, SMWizard, Sonikku, Soul, SubconsciousEye, SuperBupDX, TheBiob, TheXander, Tulip Time Scholarship Games, underway, Zatara - Guests: 212 - Bots: 179
Users: 64,316 (2,439 active)
Latest user: Svety7

Spawn custom sprite in a specific direction

I wanted to spawn a custom sprite in a specific direction, but instead, the custom sprite spawn depending of the sprite's direction towards the player.
Thinking that spawn custom sprite is something like:

    STZ $00
    STZ $01        ;store to scratch RAM.
    STZ $02        ;store to scratch RAM.
    STZ $03        ;store to scratch RAM.
    LDA #$xx        ;load sprite number
    SEC                    ;clear carry - spawn normal sprite
    BCS +            ;if no sprite was spawned don't bother playing SFX
    LDA #$xx
    STA $xxxx|!Base2

I learned that to spawn bullet bills from the specific direction is something like:

How can i fix that?
Well, this code works very well for me since the sprite is generated in one direction without having to look at Mario.

I hope it helps you, since it goes very well with the code in my sprites.