News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: SMB removal of Sprite 0  (Read 593 times)

Alpdrucken

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
SMB removal of Sprite 0
« on: December 15, 2019, 09:21:40 am »
Hello! I am trying to remove every object in the top bar of Super Mario Bros except the timer, and I almost managed to accomplish that, if it wasn't for the sprite 0 which is tied to the coin icon:
Sadly the only way I know of removing sprite 0 will make the TIME count glitch out and making the coin icon transparent won't work unless you remove the sprite 0 checks. Does anybody know of a way to accomplish this? Like tying sprite 0 to the TIME counter? Any help will be much appreciated :)

Cyneprepou4uk

  • Sr. Member
  • ****
  • Posts: 285
  • I am the baldest romhacker
    • View Profile
Re: SMB removal of Sprite 0
« Reply #1 on: December 15, 2019, 12:35:11 pm »
There are 2 ways to get rid of that coin and leave timer intact. You can use a mapper hack that supports irq, like mmc3, and activate irq instead of sprite 0 hit check. Or you can display timer using sprites, not background.

Maybe there are other ways, but nothing comes to mind right now.
iromhacker.ru - NES ROM hacking tutorials for beginners

Alpdrucken

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Re: SMB removal of Sprite 0
« Reply #2 on: December 15, 2019, 04:30:11 pm »
Thanks for the reply! Using the timer as a sprite would limit the number of sprites on screen, right?

Cyneprepou4uk

  • Sr. Member
  • ****
  • Posts: 285
  • I am the baldest romhacker
    • View Profile
Re: SMB removal of Sprite 0
« Reply #3 on: December 15, 2019, 09:49:18 pm »
Yep

You can also try to change that coin to zero number and place it under T letter, so timer will have 4 digits
« Last Edit: December 15, 2019, 09:54:34 pm by Cyneprepou4uk »
iromhacker.ru - NES ROM hacking tutorials for beginners

Bregalad

  • Hero Member
  • *****
  • Posts: 2661
    • View Profile
Re: SMB removal of Sprite 0
« Reply #4 on: December 17, 2019, 02:48:44 am »
There are 2 ways to get rid of that coin and leave timer intact. You can use a mapper hack that supports irq, like mmc3, and activate irq instead of sprite 0 hit check. Or you can display timer using sprites, not background.

Maybe there are other ways, but nothing comes to mind right now.
Or make a sprite zero which collides with the timer. (either TIME display or digits).