Making text boxes
Posted: Fri Jul 24, 2015 7:56 pm
by NickCox01
OK, so I'm trying to create my own episode of going back to the old Super Mario Bros. 1 route, but I have no clue on how to make a text box appear whenever I spawn the hint box on a level, or making separate text boxes show up if I'm to make a level to get started for the episode when selected at the Episode Select screen! How can I make this work?

Re: Making text boxes
Posted: Fri Jul 24, 2015 8:23 pm
by Julia Pseudo
Hi, welcome to the forums, NickCox01.
First of all, I've moved this topic to Help & Support. Please ask any questions you have about SMBX in this forum.
To answer your first question:
As I'm sure you realized, the info box doesn't actually do anything on its own, other than "be hit" and kill enemies standing on the block. To make it display a message when you hit it, create an event in the Events tab called "info box 1" or something to that effect. In the text field below the layer options, type the message that the info box should display.
Now, in the "Blocks" window, select the info box and click on the "events" button in the Blocks window. Select the "info box 1" event under "Hit", then place the info box in the level. It should display the message when hit now. (Also, make sure to disable the info box 1 event for any other blocks you place, or else every block you place afterwards will display that message when hit)
For added flair and Super Mario World accuracy, you can create a second event called "info box 1 trigger" or similar. This event should do nothing other than trigger "info box 1" after a short delay, of 0.3 seconds or so. Having the info box cause this event will make it so that Mario lands around the time that the message is displayed like in Super Mario World instead of the event triggering the instant that you hit the block. <- This is not required, though.
To answer your second question:
To have text display at then beginning of the level, simply open up the Events tab in the editor and select the pre-made event "Level - Start", which does nothing on its own, but is automatically triggered when the level is loaded. Type your message into the text field, and it should display when the level is loaded.
Re: Making text boxes
Posted: Fri Jul 24, 2015 8:47 pm
by NickCox01
Pseudo-dino wrote:Hi, welcome to the forums, NickCox01.
First of all, I've moved this topic to Help & Support. Please ask any questions you have about SMBX in this forum.
To answer your first question:
As I'm sure you realized, the info box doesn't actually do anything on its own, other than "be hit" and kill enemies standing on the block. To make it display a message when you hit it, create an event in the Events tab called "info box 1" or something to that effect. In the text field below the layer options, type the message that the info box should display.
Now, in the "Blocks" window, select the info box and click on the "events" button in the Blocks window. Select the "info box 1" event under "Hit", then place the info box in the level. It should display the message when hit now. (Also, make sure to disable the info box 1 event for any other blocks you place, or else every block you place afterwards will display that message when hit)
For added flair and Super Mario World accuracy, you can create a second event called "info box 1 trigger" or similar. This event should do nothing other than trigger "info box 1" after a short delay, of 0.3 seconds or so. Having the info box cause this event will make it so that Mario lands around the time that the message is displayed like in Super Mario World instead of the event triggering the instant that you hit the block. <- This is not required, though.
To answer your second question:
To have text display at then beginning of the level, simply open up the Events tab in the editor and select the pre-made event "Level - Start", which does nothing on its own, but is automatically triggered when the level is loaded. Type your message into the text field, and it should display when the level is loaded.
Thanks for the tip. I'll have to try that when I go back to the Level Editor for Super Mario Bros. X

Re: Making text boxes
Posted: Sat Jul 25, 2015 4:57 am
by Emral
Pseudo-dino wrote:
To have text display at then beginning of the level, simply open up the Events tab in the editor and select the pre-made event "Level - Start", which does nothing on its own, but is automatically triggered when the level is loaded. Type your message into the text field, and it should display when the level is loaded.
Keep in mind this makes the text also display when starting from the checkpoint.
The SMB1 Axe NPC does nothing but "die" when you touch it. If you write an event for it to trigger on death, which displays the message, you can have the player spawn directly on the axe and avoid the dialogue at the midpoint. To make this an invisible trigger box, you can make the graphic for the SMB1 axe invisible after finishing your level.
If the player can walk back to the start, from the midpoint, this message will still display. To avoid this, put the axe on a new layer, and have the collection of the midpoint hide this layer. This will carry over into every time you start this level after dying past the midpoint. It's a minor thing, but one of the things which indicate the designer didn't leave any exploits in their level.
Re: Making text boxes
Posted: Sat Jul 25, 2015 2:25 pm
by Julia Pseudo
^
Oh right, I forgot about the midpoint thing. Sorry, Enjl's totally right.
Re: Making text boxes
Posted: Mon Jul 27, 2015 3:16 pm
by TheKingOfBoos
Pseudo-dino wrote:^
Oh right, I forgot about the midpoint thing. Sorry, Enjl's totally right.
Enji usually is. I've learned to trust Enjii and not argue
