08-17-2019, 06:27 PM
(This post was last modified: 08-17-2019, 06:28 PM by jesusyoshi54.)
I have updated the text engine, with 2 bugfixes and 4 new cmds.
I have removed the 7A cmd [disable music] and have now just absorbed that into the 79 play music cmd. Simply choose track 0 to disable music.
The bugs I have fixed are with the 79 and 43 cmd. The 79 cmd bug was that the music was not replaying properly after the string ended. The 43 cmd bug was that if you used it mid string, it would not return to the proper location and would instead jump back several characters. both are fixed in the new file.
I have changed the address of the function you need to call to setup the string. This is now the address:
The other one remains the same:
The final feature is I have now set the keyboard up to auto import with the file. Just have keyboard.bin in the same folder as print string notes.
The HTML has not been updated with the new cmds yet, I will do that later
Code:
//47 translate origin, 4 bytes - 2 bytes x pos, 2 bytes y pos
//48 jump string, 4 bytes - ram address
//4C enable A press to increase text speed, 2 bytes - speed while holding A
//4D disable A press to jump to end of box
The bugs I have fixed are with the 79 and 43 cmd. The 79 cmd bug was that the music was not replaying properly after the string ended. The 43 cmd bug was that if you used it mid string, it would not return to the proper location and would instead jump back several characters. both are fixed in the new file.
I have changed the address of the function you need to call to setup the string. This is now the address:
Code:
//sets up string
//80404fc4
//a0=x
//a1=y
//a2=*string
Code:
//80405218
//enable dialog with this object
//a0=x
//a1=y
//a2=*string
//everything but this object and mario will freeze, when dialog ends, everything will unfreeze (aka a 7C or a 7B cmd)
The HTML has not been updated with the new cmds yet, I will do that later
My most recent hack:
https://www.youtube.com/watch?v=wn2WrmeQ4ms
https://www.youtube.com/watch?v=wn2WrmeQ4ms