Banner
Views: 858,015,248
Time:
20 users online: aaabichou, AnEvilGhost,  Anorakun, Cheolpeoduck, codfish1002, Doopu, edgar, Elek, FLIO, Infinity,  JamesD28,  KevinM, kontrol,  MarioFanGamer, MegaSonic1999, nnj, Segment1Zone2, Soul2Limbo, Thwompz, Vic Rattlehead - Guests: 44 - Bots: 112 Users: 47,396 (2,263 active)
Latest: gr0gr0
Tip: Avoid blind jumps. If the player has to jump down a random hole to proceed with no indication at all that they can go down there, you've done something wrong!Not logged in.
How long?
Forum Index - SMW Hacking - SMW Hacking Help - How long?
Pages: « 1 »
I was wondering, how many frames does a P-switch timer last for?
Two hundred and fifty-five or two hundred and fifty-six. I'm not sure which of the two it is (it depends on when the timer decrement code runs), but I doubt that matters to you.

--------------------
<blm> zsnes users are the flatearthers of emulation
It lasts longer than that. 255 frames is about 4 seconds.


My guess would be ~16 seconds, or 255 x4. That's without actually looking at the p-switch timer code though.
...you're right, that timer doesn't tick each frame.

$01AB1A sets the timer to #$B0.
$00C513 ticks it down every fourth frame.
#$B0 times 4 is 704 frames (~11.7 seconds), with an error margin of 4 frames in either direction.

(assuming I didn't misread it somehow)

--------------------
<blm> zsnes users are the flatearthers of emulation
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - How long?

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

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


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy