Banner
Views: 738,163,543
Time:
26 users online: Aguni_, BeeKaaaay, Emerald Shell, o Erik, FrozenHydra, FrozenQuills, Gamma V, Green Jerry, o Hobz, Hooded Edge, Hypado, IanBoy, KKevinM, lucasfilm, MM102, ModernKiwi, NeXuS15, ShUriK KiD, Stairkase, Super Maks 64, o Tahixham, Telinc1, The Hacking Yoshi, Truxton, Yung Gotenks, ZAGESAW - Guests: 54 - Bots: 67Users: 38,843 (1,929 active)
Latest: MedroidFelipe
Tip: Never put a Hammer Brothers Sprite near lava. After being killed, it will still throw hammers until it sinks or goes off-screen.Not logged in.
Help with screen stopping
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Help with screen stopping
Pages: « 1 »
I'm working on a new sprite meant to be a mid boss of sorts. For testing purposes I use a clean ROM, empty level 105 and put the boss there. In the INIT routine I store $5E to $06F9 (empty RAM) and store #$01 to $5E (so the screen will stop moving at screen 00). However the screen stops only 8 tiles (half a screen) into screen 01.

Here's my code:

Code
	LDA #$09
	STA $63			;Sets boss HP to 9
	LDA $5E
	STA $06FB		;Preserves the original value of address $5E
	LDA BOSS_SCREEN
	STA $5E			;Locks the camera at the desired screen number
	RTL



EDIT:
I solved it. When I tried storing #$01 to $5E instead of BOSS_SCREEN (which was set to #$01) it worked. I don't know why, but, whatever, it works.

We’re looking for level designers to work on Extra Mario World!
Where did you define BOSS_SCREEN? Show us that; you probably have a typo there.
Originally posted by Von Fahrenheit
EDIT:
I solved it. When I tried storing #$01 to $5E instead of BOSS_SCREEN (which was set to #$01) it worked. I don't know why, but, whatever, it works.

This is just a guess, but I assume you defined it like this:

Code
BOSS_SCREEN = $01

in that case, if you use LDA BOSS_SCREEN, it would mean you load the address $01.
You have to load LDA #BOSS_SCREEN to make it #$01

--------------------
Anime statistic on MyAnimeList:
400 animes completed ✓
6000 episodes completed ✓
100 Days completed ✓
... what even am I doing with my life?
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Help with screen stopping

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: 25

Menu

Follow Us On

  • Facebook
  • Twitter
  • YouTube

Affiliates

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