n8bit
Member
Would like to add bonus levels if conditions are met, for instance if the variable myMoney is greater or equal to 20.
So once the player reached the end of the level and touches the level clear tile they will either warp to the next level or warp to the bonus level if they collected enough items.
would something like this before my warp to screen code do the trick?
So once the player reached the end of the level and touches the level clear tile they will either warp to the next level or warp to the bonus level if they collected enough items.
would something like this before my warp to screen code do the trick?
Code:
CPX myMoney
BEQ #$14
LDA warpMap
sta currentMap
clc
ADC #$01
STA temp
GoToScreen warpToScreen, ;;;place bonus screen coordinates here
RTS