General discussion about Super Mario Bros. X.
Moderator: Userbase Moderators
|
|
|
|
-
HenryRichard
- Reznor

- Posts: 2843
- Joined: Mon Dec 23, 2013 12:09 pm
- Flair: Is this where I type my password?
-
Contact:
Postby HenryRichard » Wed Oct 08, 2014 3:50 pm
Have you ever played one of those RPGs where when you talk to someone a picture of their face shows up by the stuff they say? Well now we can do it in SMBX (with lunadll)!
So first of all, you need to have and load the image itself. This is what I used:
Now you must make the area that he will talk to you. I do this by placing a certain block around a friendly NPC that triggers it. (Using block-1 for this) When you're done, swap its graphic out with one that blends in with the rest of the area. When you stand on it, the commands are triggered. To finish it off, we display the image and some text. Here's the code:
Code: Select all #-1
// --> Load image into slot 1 with transparency color FF00DC (Pink)
LoadImage,1,0xDC00FF,0,0,0,IMAGENAMEHERE.bmp
#1
//When we stand on block-1...
BlockTrigger,0,1,1,1000,0,0
#1000
//Show some text and the image.
ShowText,0,64,560,3,1,FIRST LINE HERE, REMEMBER TO USE ALL CAPS
ShowText,0,64,580,3,1,(SECOND LINE) BECAUSE TEXT 3 DOESN'T HAVE LOWERCASE.
PlaceSprite,1,1,0,540,3,0
Assuming you did everything right, you should get something like this when standing on those blocks:
Hopefully this makes sense, I'm not that great at writing tutorials.
Thanks to Darkchao for showing me how to use images!
Last edited by HenryRichard on Wed Oct 08, 2014 9:50 pm, edited 1 time in total.
|
|
|
|
|
|
|
|
|
-
Black Mamba
- Boss Bass

- Posts: 1253
- Joined: Thu May 29, 2014 6:11 pm
- Pronouns: They/Her
Postby Black Mamba » Wed Oct 08, 2014 4:11 pm
OH MY GOD THAT IS THE MOST AMAZING THING EVER! Is there a way for the text to be onscreen throughout the level?
|
|
|
|
|
|
|
|
|
-
HenryRichard
- Reznor

- Posts: 2843
- Joined: Mon Dec 23, 2013 12:09 pm
- Flair: Is this where I type my password?
-
Contact:
Postby HenryRichard » Wed Oct 08, 2014 4:22 pm
@Epoch:
Well you know, if you did
Code: Select all #-1
// --> Load image into slot 1 with transparency color FF00DC (Pink)
LoadImage,1,0xDC00FF,0,0,0,IMAGENAMEHERE.bmp
#1
//Show some text and the image.
ShowText,0,64,560,3,3,FIRST LINE HERE, REMEMBER TO USE ALL CAPS
ShowText,0,64,580,3,3,(SECOND LINE) BECAUSE TEXT 3 DOESN'T HAVE LOWERCASE.
PlaceSprite,1,1,0,540,3,0
Then it would be displayed as long as you are in section 1.
|
|
|
|
|
|
|
|
|
-
leif_erikson
- Blooper

- Posts: 167
- Joined: Thu Feb 06, 2014 12:23 pm
Postby leif_erikson » Wed Oct 08, 2014 4:28 pm
If you want to use lowercase letters, I think you can use font # 4, which is the same as the SMBX messagebox font
|
|
|
|
|
|
|
|
|
-
DarkShadeX
- Volcano Lotus

- Posts: 535
- Joined: Sat Jan 18, 2014 11:34 am
Postby DarkShadeX » Wed Oct 08, 2014 5:17 pm
IDK if it happens with your code but it might happen to lag when you Hit the block several times.
(reason why i used variables in my example)
|
|
|
|
|
|
|
|
|
-
leif_erikson
- Blooper

- Posts: 167
- Joined: Thu Feb 06, 2014 12:23 pm
Postby leif_erikson » Wed Oct 08, 2014 9:10 pm
True. For showtext the active time should be 1 not 3
|
|
|
|
|
|
|
|
|
-
HenryRichard
- Reznor

- Posts: 2843
- Joined: Mon Dec 23, 2013 12:09 pm
- Flair: Is this where I type my password?
-
Contact:
Postby HenryRichard » Wed Oct 08, 2014 9:50 pm
leif_erikson wrote:True. For showtext the active time should be 1 not 3
Fixed (I think)
|
|
|
|
|
|
|
|
|
-
AirSeus
- Blue Yoshi Egg

- Posts: 1121
- Joined: Fri Feb 14, 2014 2:40 pm
- Flair: Ok no
- Pronouns: He/Him
Postby AirSeus » Fri Oct 10, 2014 6:26 pm
Couldn't you do this with Layers and Events, but still this could be usefull for Lunadll workers!
|
|
|
|
|
|
|
|
|
-
Black Mamba
- Boss Bass

- Posts: 1253
- Joined: Thu May 29, 2014 6:11 pm
- Pronouns: They/Her
Postby Black Mamba » Fri Oct 10, 2014 6:35 pm
AirSeus wrote:Couldn't you do this with Layers and Events, but still this could be usefull for Lunadll workers!
No, the only thing similar to this is having stupid message boxes.
|
|
|
|
|
|
|
|
|
-
AirSeus
- Blue Yoshi Egg

- Posts: 1121
- Joined: Fri Feb 14, 2014 2:40 pm
- Flair: Ok no
- Pronouns: He/Him
Postby AirSeus » Sat Oct 11, 2014 8:58 am
Epoch wrote:AirSeus wrote:Couldn't you do this with Layers and Events, but still this could be usefull for Lunadll workers!
No, the only thing similar to this is having stupid message boxes.
It was done without lunadll in Talking Time Bros 2.
|
|
|
|
|
|
|
|
|
-
HenryRichard
- Reznor

- Posts: 2843
- Joined: Mon Dec 23, 2013 12:09 pm
- Flair: Is this where I type my password?
-
Contact:
Postby HenryRichard » Sat Oct 11, 2014 12:09 pm
AirSeus wrote:Epoch wrote:AirSeus wrote:Couldn't you do this with Layers and Events, but still this could be usefull for Lunadll workers!
No, the only thing similar to this is having stupid message boxes.
It was done without lunadll in Talking Time Bros 2.
It's possible, but it would have to be done on a one-screen section or else it will get off.
|
|
|
|
|
|
|
|
|
-
Black Mamba
- Boss Bass

- Posts: 1253
- Joined: Thu May 29, 2014 6:11 pm
- Pronouns: They/Her
Postby Black Mamba » Tue Oct 14, 2014 6:14 pm
Is it possible to do this without any images?
|
|
|
|
|
|
|
|
|
-
FanofSMBX
- Ludwig von Koopa

- Posts: 3878
- Joined: Sun Dec 22, 2013 12:01 pm
Postby FanofSMBX » Tue Oct 14, 2014 6:27 pm
Epoch wrote:Is it possible to do this without any images?
Yes. Just remove anything pertaining to place sprite or a picture file.
|
|
|
|
|
|
|
|
|
-
Black Mamba
- Boss Bass

- Posts: 1253
- Joined: Thu May 29, 2014 6:11 pm
- Pronouns: They/Her
Postby Black Mamba » Tue Oct 14, 2014 6:31 pm
whenever I try to test the level, the text appears for a split second and then disappears.
Edit::::: I fixed it. I'm using this awesome lunadll to display area names.
|
|
|
|
|
Return to “General”
Users browsing this forum: Petal [Bot] and 1 guest
|