Animated during text window pop up

red moon

Member
Hello everyone, I wanted to see if anyone had any luck disabling animation temporarily when an activated text window pops up. Its not an issue if you carefully walk up to the game object (in my case an NPC) and press the button or jump (it holds the still image of you in the air) but in most cases the player presses the button walking toward the NPC and the animation continues playing while the window pops up.
I can put up a GIF to show which could help.

Thank you!
 

Mugi

Member
you could just use the same method i use for the pause to freeze the animation frames.
here: http://nesmakers.com/viewtopic.php?f=35&t=2421&start=30#p18135

you can apply this to basically anything.
find a variable or a value that is being set when a textbox activates, then change the code;

Code:
 ; freeze object aniamtions when game is paused.
    LDA isPaused
    BNE notAtEndOfFrame

to use that variable instead of "isPaused"
there you have it, the animations will completely halt during text boxes.

alternatively, if you want idle animations to play instead (like the hair of the npc object) you could simply add a line to the textbox code that forces the player into idle action state
 
Top Bottom