Banner
Views: 763,809,833
Time:
16 users online: cybershell12,  Decoy Blimp, DPBOX, ElijahRulz,  Everest, Falconpunch,  Khastvrokg, lssjcorey, lx5,  Pinci, Shinnok,  Shiny Ninetales, SubconsciousEye, thewhiskas27, Tob, Ultima - Guests: 62 - Bots: 397Users: 40,147 (1,960 active)
Latest: yeritworld
Not logged in.
Block Crash
Forum Index - SMW Hacking - SMW Hacking Help - Block Crash
Pages: « 1 »
Is it normal that the Rom crashes when a sprite touches this block?
Here is the code

Code
;acts like $25

db $37

JMP MarioBelow : JMP MarioAbove : JMP MarioSide
JMP SpriteV : JMP SpriteH
JMP Cape : JMP Fireball
JMP MarioCorner : JMP MarioBody : JMP MarioHead
JMP WallFeet : JMP WallBody

MarioBelow:
MarioAbove:
MarioSide:
RTL

SpriteV:
	LDA $14C8,x				; \ If the sprite is  alive...
	CMP #$08				; |
	BCC Label_0000			; /
	LDA #$A8				; \ Set the sprite's y position to -88.
	STA $AA,x				; /
Label_0000:					; > --------
RTL

SpriteH:
	LDA $14C8,x				; \ If the sprite is  alive...
	CMP #$08				; |
	BCC Label_0001			; /
	LDA #$A8				; \ Set the sprite's y position to -88.
	STA $AA,x				; /
Label_0001:					; > --------


Cape:
Fireball:
MarioCorner:
MarioBody:
MarioHead:
WallFeet:
WallBody:
RTL



print "A block that makes sprites move upwards."


Also im using Blocktool Super Deluxe

--------------------

Pretty sure BTSD doesn't support wall run offsets. Remove those last two JMPs, change db $37 to db $42, and see if that works.

Changing RTL to RTS is also always worth a try.

--------------------


 
Hi thanks its working now

--------------------

Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - Block Crash

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

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


Total queries: 23

Menu

Follow Us On

  • Facebook
  • Twitter
  • YouTube

Affiliates

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