Hi, I was trying to make a brick block that when Mario hits it from below and has a mushroom it shatters and if he doesn't have a mushroom it spawns a bounce sprite, I have the shattering down but the bounce sprite is when I get a bit confused. I'm using the spawn_bounce_sprite.asm routine that comes with GPS and it comes with some guidelines on how to use it and although I thought I followed them ok I get an error on insert saying:
Here are the guidelines I followed:
and finally here is my code:
https://pastebin.com/VctLuB1B
Code
27 Shared routines registered in "routines/" An error has been detected: blocks/solid_brick.asm:15 (called from blocks/solid_brick.asm:15): error: (E5100): Broken macro usage. [%spawn_bounce_sprite]
Here are the guidelines I followed:
Code
;~@sa1 ;Input: A = Bounce sprite number, X = $9C value, Y = bounce sprite direction, ; $03-$04 = Map16 number (only if $9C or X is $1C or larger) (Requires Custom Bounce Block Sprites) ;Ouput: Y = Slot used ;Clobbers: ; A, X, $05, $06, $07
and finally here is my code:
https://pastebin.com/VctLuB1B