Language…
15 users online: akawo, Alex No, Big Brawler, CroNo, Green, Hammerer, kurtistrydiz, LadiesMan217, Mecke1990, rafaelfutbal, Rykon-V73,  Segment1Zone2, Spedinja, steelsburg, Tulip Time Scholarship Games - Guests: 289 - Bots: 691
Users: 64,795 (2,369 active)
Latest user: mathew

Posts by GaramiGrappler

GaramiGrappler's Profile → Posts

  • Pages:
  • 1
I’m currently messing around with Ladida’s Peach Float Ability patch (https://www.smwcentral.net/?p=section&a=details&id=20818) and wanted to edit it to allow two things:

1. You are only able to float if you have a coin available – one coin deducted when button is pressed/held.

2. You can do consecutive floats as long as you have coins available (float still has a timer though) – don’t need to touch the ground to reset it.

So far, the coin check code is:

Code

!coins = $0DBF|!addr

LDA !coins
CMP #$00
BEQ .end


So it loads the value of the coin counter, checks if there are coins – if there isn’t any it skips the code.

Now I want to decrease the coin counter by 1 when a float is performed, I’m guessing I would use

Code
DEC !coins 


but I have no idea where I would put it. Through blind guessing I’ve had it deduct coins every frame Mario floats, the closest I’ve gotten is it deducts a coin at the end of the float.

I also have no idea where to start on allowing multiple floats, maybe something to do with the floatram code?

Any help would be greatly appreciated!
  • Pages:
  • 1