(I CAN'T BUMP)
Everyone knows that to spawn a sprite, the hint is:
or perhaps:
Now i need to do how to spawn a number of projectiles.
I bet that must be the this:
The code above must be the number of sprites. Am i correct?
If not, how must be the code?
Everyone knows that to spawn a sprite, the hint is:
Code
;Routine that spawns a normal or custom sprite with initial speed at the position (+offset) ;of the calling sprite and returns the sprite index in Y ;Input: A = number of sprite to spawn ; C = Carry/Custom (CLC = CLear Custom, SEC = SEt Custom :P) ; $00 = x offset \ ; $01 = y offset | you could also just ignore these and set them later ; $02 = x speed | using the returned Y. ; $03 = y speed /
or perhaps:
Code
STZ $00 STZ $01 STZ $02 STZ $03 LDA #$01 SEC %SpawnSprite()
Now i need to do how to spawn a number of projectiles.
I bet that must be the this:
Code
LDY #$01
The code above must be the number of sprites. Am i correct?
If not, how must be the code?