Banner
The Overworld Design Contest ends in
6 DAYS, 7 HOURS, 19 MINUTES AND 4 SECONDS
Views: 905,560,510
Time:
19 users online:  1UPdudes,  AmperSam, Anas, Benjo, BlackCat, BOB66,  brickblock369, Brutapode89, Golden Yoshi, Infinity, ModernKiwi, Neidave, Raymondsze, Rotciv, RPG Hacker, Segment1Zone2, ssboy, TheJank, UFrozenO - Guests: 62 - Bots: 81 Users: 50,758 (2,067 active)
Latest: Florian1996
Tip: If your level contains elements that temporarily change the music to a global song (such as a P-Switch or a Star), that music will not stop playing after the intended end time if the music bypass setting is set to 00.
Not logged in.
How to make a sprite SA-1 compatible?
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - How to make a sprite SA-1 compatible?
Pages: « 1 » Link
Hi

I have the baseball bat sprite/power-up, but it's not compatible with SA-1. Nothing appears, nothing happens, it's just not there.
I tested on a clean SMW rom without SA-1 and with SA-1, and it's definitely a SA-1 issue.

So how to have it compatible with SA-1 ?

Thanks

--------------------
Super Mario Pants World
Luigi's Lost Levels
New Super Mario Pants World
VLDC12 - 72HoKaizo#1
You can try using this tool.
I tested it quickly, seems to work!
What are the usual issues that can happen? The "you can try" makes me think it's not exactly 100% success!
Hopefully I'll be fine as long as I can import it.

Thanks!

--------------------
Super Mario Pants World
Luigi's Lost Levels
New Super Mario Pants World
VLDC12 - 72HoKaizo#1
Well, being an automated tool there's bound to be some edge cases where it doesn't work properly, albeit unlikely (some of those are listed in the description as well).
Looking at the code, in baseballbat.asm you most likely want to change "LDX #$0B" at line 20 to "LDX #!SprSize-1", and also "JSR SubOffScreen_X1" at line 74 with "LDA #$01 : %SubOffScreen()" (to make it despawn correctly in tall horizontal levels). Also the "LDX #$16" at line 226 is weird, change that too to "LDX #!SprSize-1".
Instead in flamingbaseball.asm change "LDX #$0C" at line 62 to "LDX #!SprSize-1" and "JSR SubOffScreen_X2" at line 48 to "LDA #$02 : %SubOffScreen()". For everything else the tool should take care of it.
Thanks!

I get one weird (and annoying) behavior though. With both the converted version and the converted+your modifications, the baseball bat doesn't hit... the baseballs.
It hits the chuck, it hits the bullet bills, but not the baseball from the pitchin' chuck. It goes right through it

--------------------
Super Mario Pants World
Luigi's Lost Levels
New Super Mario Pants World
VLDC12 - 72HoKaizo#1
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - How to make a sprite SA-1 compatible?

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