Language…
6 users online: 1392year, Anas, CONLUSH666, Firstnamebutt, kirito86, Zavok - Guests: 173 - Bots: 395
Users: 64,795 (2,380 active)
Latest user: mathew

I need help with Patgangster's On/Off switch blocks.

The Off_Solid block works fine, it's solid when off, and not solid when on. The On_Solid, however, doesn't work no matter what I've tried. I have it set in the right Hex value spot (201). The description of the block on this site says it's supposed to act like tile 1030. I set the block to act like tile 1030, it just acts like tile 130; 1030 isn't even a valid tile, right?

Which tile do I set the block to act like?
I use 25 with the both and it works. And no, 1030 isn't valid.

Or it is.
It's easily the best thing I've done
So why the empty numb?
Originally posted by Austin
I use 25 with the both and it works. And no, 1030 isn't valid.


It doesn't work when I set it to act like 25 either.
Maybe you're using different blocks. I'm actually using these ones:

Code
;This block is solid when the on/off switch is set to 'on'.
;Acts like tile 25.
JMP MarioBelow : JMP MarioAbove : JMP MarioSide : JMP SpriteV : JMP SpriteH :
JMP MarioCape : JMP MarioFireBall

MarioAbove:
MarioBelow:
MarioSide:
SpriteV:
SpriteH:
MarioCape:
MarioFireBall:
	LDA $14AF
	BEQ ON
	RTL
ON:
	LDY #$10	;act like tile 130
	LDA #$30
	STA $1693
	RTL


Code
;This block is solid when the on/off switch is set to 'off'.
;Acts like tile 25.
JMP MarioBelow : JMP MarioAbove : JMP MarioSide : JMP SpriteV : JMP SpriteH :
JMP MarioCape : JMP MarioFireBall

MarioAbove:
MarioBelow:
MarioSide:
SpriteV:
SpriteH:
MarioCape:
MarioFireBall:
	LDA $14AF
	BNE OFF
	RTL
OFF:
	LDY #$10	;act like tile 130
	LDA #$30
	STA $1693
	RTL


You can try it.
It's easily the best thing I've done
So why the empty numb?
Originally posted by Austin
Maybe you're using different blocks. I'm actually using these ones:


...

I'm using Patgangster's On/Off switch blocks. They're the only ones I could find.
Change this:

Code
LDY #$10 ;act like tile 130 
LDA #$30 
STA $1693 
RTL


to:

Code
LDY #$01 ;act like tile 130 
LDA #$30 
STA $1693 
RTL


Your map16 tile must act like tile 25 to work.

Also...

Originally posted by Austin
And no, 1030 isn't valid.


Are you sure?
Originally posted by Masterlink
Change this:

Code
LDY #$10 ;act like tile 130 
LDA #$30 
STA $1693 
RTL


to:

Code
LDY #$01 ;act like tile 130 
LDA #$30 
STA $1693 
RTL


Your map16 tile must act like tile 25 to work.


How do I make changes to the code?

Originally posted by Masterlink


If it is, then it doesn't work.
Just open the ASM file in the notepad and replace.
It's easily the best thing I've done
So why the empty numb?
Open the asm file with notepad and search for those lines.

Originally posted by wiiqwertyuiop
Alot of people change tile 1030 for their own needs.


I know, but he was asking if it's a valid tile.


Edit: lolninja.
Originally posted by Masterlink
Open the asm file with notepad and search for those lines..


It worked. Thank you.
Pushing this old thread up as it's a related topic - I used the same blocks, they work, but I encounter a problem:


The solid blocks have no Sprite-Interaction - I don't know anything about asm, but I imagine it can't be too difficult to add a line or two to support that function...?


(I wonder why sprite interaction isn't enabled since the solid block is set to act like tile 130...?)