UPDATE: It was because of the Mesen turbo settings
Hi, I'm having some trouble with one of my input scripts. I want to toggle a variable when the user releases the A button.
...but if I keep pressing A, it keeps toggling the variable.
In the Input Editor it is defined like this
I'm still learning 6502 asm so if there is a better way for toggling a boolean, please let me know.
Hi, I'm having some trouble with one of my input scripts. I want to toggle a variable when the user releases the A button.
Code:
LDA myVar
CMP #$01
BEQ +
LDA #$01
STA myVar
RTS
+
LDA #$00
STA myVar
RTS
...but if I keep pressing A, it keeps toggling the variable.
In the Input Editor it is defined like this
Code:
MainGame: Release A: Player 1:0 - Path/To/Script.asm
I'm still learning 6502 asm so if there is a better way for toggling a boolean, please let me know.