So, I'm currently trying to insert a Custom ? Block into my hack which produces an upside down growing vine. I was able to take this disassembly of the growing vine and mess with the code a bit to produce the upside down vine, but I'm having some issues with putting it into a custom block.
I took question_block_e.asm from Question Mark Blocks v1.3.0 (because I'm not exactly too skilled with ASM and have no idea where to start with making these things) and it said in the readme file that it was used to spawn sprites, and that it had extra bit and extra byte support. Well, this is where the issue starts - I've inserted the upside down vine into the game normally, so I know that it works, but I don't know what value to change within the block's code to set the extra bit. Here's what it looks like:
Note: I included the '!ExtraByte' because I'm still not quite sure if it's relevant to extra bits or not.
So I'm not exactly sure what to input where. I'm trying to set the extra bit to 2, as that is what the disassembly uses, but I don't know where to put that. I thought at first it was at '!ExtraBit', but I'm pretty sure that value is simply meant to declare "yes, the extra bit is being used!", and I have no clue where to put it besides here.
All the !ExtraByte stuff just confuses me.
Any help would be appreciated!
I took question_block_e.asm from Question Mark Blocks v1.3.0 (because I'm not exactly too skilled with ASM and have no idea where to start with making these things) and it said in the readme file that it was used to spawn sprites, and that it had extra bit and extra byte support. Well, this is where the issue starts - I've inserted the upside down vine into the game normally, so I know that it works, but I don't know what value to change within the block's code to set the extra bit. Here's what it looks like:
Code
!Sprite = $79 ; sprite number !IsCustom = 1 ; 0 for normal, 1 for a custom sprite !GIEPY = 0 ; Set this to 1 if you use GIEPY !ExtraBit = 1 ; extra bit activated, should be 1 !Group = 0 ; group number/extra byte, should range from 0-3 !State = $08 ; $08 for normal, $09 for carryable sprites !1540_val = $00 ; If you use powerups, this should be $3E ; Carryable sprites uses it as the stun timer !ExtraByte1 = $00 ; First extra byte (only applyable if extra bytes are enabled) !ExtraByte2 = $00 ; Second extra byte !ExtraByte3 = $00 ; Third extra byte !ExtraByte4 = $00 ; Fourth extra byte
Note: I included the '!ExtraByte' because I'm still not quite sure if it's relevant to extra bits or not.
So I'm not exactly sure what to input where. I'm trying to set the extra bit to 2, as that is what the disassembly uses, but I don't know where to put that. I thought at first it was at '!ExtraBit', but I'm pretty sure that value is simply meant to declare "yes, the extra bit is being used!", and I have no clue where to put it besides here.
All the !ExtraByte stuff just confuses me.
Any help would be appreciated!