| I need help with Patgangster's On/Off switch blocks. |
|
Forum Index - SMW Hacking - General SMW Hacking Help - I need help with Patgangster's On/Off switch blocks. |
|
Pages: 1  |
|
|
|
| Posted on 2012-02-08 05:25:44 PM |
Link | Quote |
|
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?
|
|
| Posted on 2012-02-08 05:29:48 PM |
Link | Quote |
|
I use 25 with the both and it works. And no, 1030 isn't valid.
Or it is.
|
| Last edited on 2012-02-08 05:53:18 PM by Koopster. |
|
| Posted on 2012-02-08 05:32:11 PM |
Link | Quote |
|
Originally posted by AustinI 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.
|
|
| Posted on 2012-02-08 05:37:30 PM |
Link | Quote |
|
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.
|
|
| Posted on 2012-02-08 05:41:41 PM |
Link | Quote |
|
Originally posted by AustinMaybe 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.
|
| Last edited on 2012-02-08 05:41:49 PM by Sixcorby. |
|
| Posted on 2012-02-08 05:51:32 PM |
Link | Quote |
|
Change this:
CodeLDY #$10 ;act like tile 130
LDA #$30
STA $1693
RTL
to:
CodeLDY #$01 ;act like tile 130
LDA #$30
STA $1693
RTL
Your map16 tile must act like tile 25 to work.
Also...
Originally posted by AustinAnd no, 1030 isn't valid.
Are you sure?
|
|
| Posted on 2012-02-08 06:03:25 PM |
Link | Quote |
|
Originally posted by Masterlink
Also...
Originally posted by AustinAnd no, 1030 isn't valid.
Are you sure?
Alot of people change tile 1030 for their own needs.
|
|
| Posted on 2012-02-08 06:04:19 PM |
Link | Quote |
|
Originally posted by MasterlinkChange this:
CodeLDY #$10 ;act like tile 130
LDA #$30
STA $1693
RTL
to:
CodeLDY #$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.
|
|
| Posted on 2012-02-08 06:09:15 PM |
Link | Quote |
|
|
Just open the ASM file in the notepad and replace.
|
|
| Posted on 2012-02-08 06:11:05 PM |
Link | Quote |
|
Open the asm file with notepad and search for those lines.
Originally posted by wiiqwertyuiopAlot of people change tile 1030 for their own needs.
I know, but he was asking if it's a valid tile.
Edit: lolninja.
|
| Last edited on 2012-02-08 06:11:23 PM by Masterlink. |
|
| Posted on 2012-02-08 06:21:57 PM |
Link | Quote |
|
Originally posted by MasterlinkOpen the asm file with notepad and search for those lines..
It worked. Thank you.
|
|
| Posted on 2012-07-09 11:35:59 AM |
Link | Quote |
|
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...?)
|
|
|
Pages: 1  |
|
|
|
|
Forum Index - SMW Hacking - General SMW Hacking Help - I need help with Patgangster's On/Off switch blocks. |