SoulBlayzR
New member
Hello everyone, I just want something simple for my game. I want an experience system, where, if I collect 100 points, they'll all go away and you'll gain a level. Kind of how lives work in Super Mario Bros. I've tried doing this myself in ASM but I got confused halfway through and got stuck. Could someone help a guy out?
Here's the code I attempted
Results: nothing happens upon gaining 100 EXP
Here's the code I attempted
Code:
LDA myScore
CLC
CMP #$64
BCS levelUp
levelUp:
TXA
STA tempx
SBC myScore,#$64
LDA myScore
LDX player1_object
STA Object_score.x
INC myKeys
LDA myKeys
LDX player1_object
STA Object_keys.x
Results: nothing happens upon gaining 100 EXP