Language…
9 users online:  Atari2.0, futhark, GRIMMKIN, JezJitzu, kasoku,  Nanako, Nemesis1407, Pink Gold Peach,  Segment1Zone2 - Guests: 247 - Bots: 357
Users: 64,795 (2,377 active)
Latest user: mathew

[Self solved] Question Mark Blocks v1.3.0 + lx5's Powerups 3.4.4 Problem

The question mark blocks included with lx5's Powerups 3.4.4 were not inserted, so i used 'Question Mark Blocks v1.3.0' blocks

The original code didn't work, so I changed it to below.

Code
db $42

JMP MarioBelow : JMP MarioAbove : JMP MarioSide
JMP SpriteV : JMP SpriteH
JMP Cape : JMP Fireball
JMP MarioCorner : JMP MarioInside : JMP MarioHead

!Sprite = $02	; sprite number
!IsCustom = SEC ; CLC for normal, SEC custom sprite
!State = $08	; $08 for normal, $09 for carryable sprites
!1540_val = $3E	; If you use powerups, this should be $3E
				; Carryable sprites uses it as the 

(This part has not been edited, so it is omitted.)

	LDA #!ExtraByte1
	STA !extra_byte_1,x
	LDA #!ExtraByte2
	STA !extra_byte_2,x
	LDA #!ExtraByte3
	STA !extra_byte_3,x
	LDA #!ExtraByte4
	STA !extra_byte_4,x

	lda #$01
	sta $02
	lda $15E9|!addr
	pha
	stx $15E9|!addr	
	%init_item()
	pla
	sta $15E9|!addr
	lda #$00
	sta !7FAB10,x

	LDA !190F,x
	BPL Return2
	LDA #$10
	STA !15AC,x

Return2:
	PLY
	PLX
RTL

print "A block which spawns a super leaf."


This happens when the player hits this block from below or hits it with a shell or cape.
The item comes out from above, but after a while it moves to the side.


Or is there a way to fix the block included in the lx5's power-up patch to make it compatible with GPS 1.4.3?.
This was solved by modifying the code in the block accompanying the lx5's power-up patch.

Instant question blocks:
Code
	LDA #!ExtraByte1
	STA !sprite_extra_byte1,x
	LDA #!ExtraByte2
	STA !sprite_extra_byte2,x
	LDA #!ExtraByte3
	STA !sprite_extra_byte3,x
	LDA #!ExtraByte4
	STA !sprite_extra_byte4,x

into
Code
	LDA #!ExtraByte1
	STA !extra_byte_1,x
	LDA #!ExtraByte2
	STA !extra_byte_2,x
	LDA #!ExtraByte3
	STA !extra_byte_3,x
	LDA #!ExtraByte4
	STA !extra_byte_4,x


normally ? blocks:
Code
	LDA ExtraByte1,y
	STA !sprite_extra_byte1,x
	LDA ExtraByte2,y
	STA !sprite_extra_byte2,x
	LDA ExtraByte3,y
	STA !sprite_extra_byte3,x
	LDA ExtraByte4,y
	STA !sprite_extra_byte4,x

into
Code
	LDA ExtraByte1,y
	STA !extra_byte_1,x
	LDA ExtraByte2,y
	STA !extra_byte_2,x
	LDA ExtraByte3,y
	STA !extra_byte_3,x
	LDA ExtraByte4,y
	STA !extra_byte_4,x