Language…
12 users online: adamlucero,  Anorakun, ForthRightMC, fsvgm777, jojo_kaizo, Kortizas,  Major Flare, Nitrogen, Raychu2021, Rykon-V73, Serries, sholmes - Guests: 101 - Bots: 274
Users: 65,972 (2,172 active)
Latest user: delion902

How to freeze game With UberASM

Code
Freeze:
	LDA #$01		;\
	STA $9D			;/Freezing sprites and animated tiles
	LDA #$01		;\
	STA $13FB|!addr		;/Freezing player
	LDA #$01		;
	STA $13D3|!addr		;Disable Pause

This is the code I used. However, this cannot stop Yoshi's tongue, and if player press X or Y in this state, Yoshi's tongue will come out when the game unfreezes.
p.s. In this code, it must not disable X or Y.
Maybe to improve best the code:

Code
Freeze:
        LDA #$0B
        STA $71 ;> Lock controller (probably?)
	INC $9D ;> Freezing sprites and animated tiles
	INC $13FB|!addr ;> Freezing player
	INC $13D3|!addr ;> Disable Pause


Test it and tell me if it worked... i don't know how you're using this code.
Originally posted by TheXander
Maybe to improve best the code:

Code
Freeze:
        LDA #$0B
        STA $71 ;> Lock controller (probably?)
	INC $9D ;> Freezing sprites and animated tiles
	INC $13FB|!addr ;> Freezing player
	INC $13D3|!addr ;> Disable Pause


Test it and tell me if it worked... i don't know how you're using this code.


Good. But this too has problems.
1. If the player presses X or Y just before this code runs, Yoshi's tongue isn't freeze.
2. X/Y buttons are locked. In my work, the game should be paused, but X and Y should not be disabled.
This is weird, maybe the Yoshi flag is interfering?

Have you tried figure nuke the Yoshi riding flags and them, increase thoses again when unfreeze? like:

STZ $187A|!addr
STZ $0DC1|!addr

Also, if you can please, send here the entire code file? To see it and understand better what needs the code for help you avoid this bug, thanks in advance.
Originally posted by TheXander
This is weird, maybe the Yoshi flag is interfering?

Have you tried figure nuke the Yoshi riding flags and them, increase thoses again when unfreeze? like:

STZ $187A|!addr
STZ $0DC1|!addr

Also, if you can please, send here the entire code file? To see it and understand better what needs the code for help you avoid this bug, thanks in advance.


Pseudo Message Box.asm
This is my work. It is mimics SMW's message box.