Banner
Views: 318,265,789
Time: 2014-10-26 02:27:00 AM
7 users online: Coolmario, Gregor, h2643, o HuFlungDu, Kinopio, Qwholl, RednGreen - Guests: 18 - Bots: 44Users: 25,755 (1,108 active)
Latest: ilovekaizo
Tip: Take advantage of easy to implement ASM hacks that can be found in the ROM map.
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 »
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.
Last edited on 2012-02-08 05:53:18 PM by Koopster.
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.
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.
Last edited on 2012-02-08 05:41:49 PM by Sixcorby.
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


Also...

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


Are you sure?


Alot of people change tile 1030 for their own needs.
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.
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.
Last edited on 2012-02-08 06:11:23 PM by Masterlink.
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...?)
Pages: « 1 »
Forum Index - SMW Hacking - General SMW Hacking Help - I need help with Patgangster's On/Off switch blocks.

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2014 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 27

Menu

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG