Bucket Mouse
Active member
This evening I did some heavy experimentation, trying to build an Autotext tile in NESMaker 4.1. Feel like I'm really close now. I got a text box to appear with just these three lines:
The first two lines are what replaced textBoxFlag in this version; this bit must be set to "On" before you subroutine to HandleTextBox. I'm not sure what's happening after that, though.
Here's the strange part: My character can actually move while the text box is drawing, and while it is displayed. But he can't move while the box is undrawing. Also, the character is automatically moving in one direction when I hit the tile, only now it's upwards. Moving the control pad in any direction stops it.
There is a macro called "DrawText," and I experimented with it first, but it demands two ARGuments to work, arg0 and arg1. I have no idea what, exactly, it wants there. I do know that I've tried a few things and none have generated a text box with DrawText. DrawText never subroutines to HandleTextBox so how is it supposed to know to even draw one? It simply doesn't.
Maybe these things are supposed to work in tandem? If so how? DrawText is not used in the existing code anywhere and HandleTextBox is just referenced once, in HandleBoxes. So they never work together anywhere in this.
Code:
LDA #%10000000
STA textboxHandler
JSR HandleTextBox
The first two lines are what replaced textBoxFlag in this version; this bit must be set to "On" before you subroutine to HandleTextBox. I'm not sure what's happening after that, though.
Here's the strange part: My character can actually move while the text box is drawing, and while it is displayed. But he can't move while the box is undrawing. Also, the character is automatically moving in one direction when I hit the tile, only now it's upwards. Moving the control pad in any direction stops it.
There is a macro called "DrawText," and I experimented with it first, but it demands two ARGuments to work, arg0 and arg1. I have no idea what, exactly, it wants there. I do know that I've tried a few things and none have generated a text box with DrawText. DrawText never subroutines to HandleTextBox so how is it supposed to know to even draw one? It simply doesn't.
Maybe these things are supposed to work in tandem? If so how? DrawText is not used in the existing code anywhere and HandleTextBox is just referenced once, in HandleBoxes. So they never work together anywhere in this.