Banner
The Overworld Design Contest ends in
7 DAYS, 6 HOURS, 27 MINUTES AND 39 SECONDS
Views: 905,383,751
Time:
15 users online: 00frank, akidaban, alternateSMW_, BlueToad, buggy789, Hayashi Neru, Infinity, JonnyManjiro,  KevinM, Magikey, monkey03297, Nipitah, RPG Hacker,  RussianMan,  Stivi - Guests: 67 - Bots: 83 Users: 50,751 (2,077 active)
Latest: karinou
Tip: The No More Sprite Tile Limits patch does NOT increase the limit for the amount of sprites onscreen at once. The SA-1 Pack does.
Not logged in.
Lightning Generator UberASM
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Lightning Generator UberASM
Pages: « 1 » Link
I use this UberASM.
In my level it takes about 7 seconds to start the effect and then does it constantly every 3 seconds or so.
Is it possible to change it to:
- start immediately
- a random rate between 3 and 7 seconds, or if that's complicated constantly every 5 seconds.

Thanks!

--------------------
Mario Quits - My Kaizo hack in progress


For some reason that UberASM code doesn't actually initialize the lighting timer so it starts at the absolute maximum of #$FF. To fix it, just add this bit at the top:

Code
init:
	LDA #$20
	STA $1FFC|!addr
	RTL



Also, since I noticed this while reading the code, you may also want to change this line:
Code
		LDA #$A9

to
Code
		LDA $04F708,x

Which will more accurately match the original lighting generator code, and provide a bit more randomness to the timing of the lightining. As-is, the code currently will always space the lightning booms the exact same time apart.

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
Works perfectly!
Thanks (once more)!

--------------------
Mario Quits - My Kaizo hack in progress
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Lightning Generator UberASM

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

Copyright © 2005 - 2021 - 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
  • sm64romhacks