vanderblade
Active member
I'm still working on getting my 2-player mode operational in my brawler. I've uncommented out the bit of code in the Initialization script, so that if I start the game on a Main Game screen, my player2_object appears.
However, if I come from a Title Screen or Special Screen, the player2_object doesn't appear once we get to the Main Game screen.
My first question is where do I even begin here?
I think I have to modify my Start Game script, but I'm not sure what will work. I'm pasting my start game script below, which is what I use to transition between title/special screens and my playable Main Game screens. Thanks in advance.
However, if I come from a Title Screen or Special Screen, the player2_object doesn't appear once we get to the Main Game screen.
My first question is where do I even begin here?
I think I have to modify my Start Game script, but I'm not sure what will work. I'm pasting my start game script below, which is what I use to transition between title/special screens and my playable Main Game screens. Thanks in advance.
Code:
LDA screenUpdateByte
ORA #%00000100
STA screenUpdateByte
LDA warpToMap
STA warpMap
LDA warpToScreen
STA currentNametable
LDX player1_object
STA Object_screen,x
LDX player2_object
STA Object_screen,x ;; how to fix this? what do I actually need here?
LDA #$01
STA screenTransitionType ;; is of warp type
LDA gameHandler
ORA #%10000000
STA gameHandler ;; this will set the next game loop to update the screen.
StopMoving player1_object, #$FF, #$00
ChangeFacingDirection player1_object, #FACE_RIGHT
RTS