Here's the idea: Create a blank frame (we 'll merge it with the frames you need the dialogue to appear.). Create one hotspot on the bottom to use it as a black background.in its appearance select picture and then create a simple black picture (or whatever color you want your background). Resize this hotspot to capture from one side to the other and make it as tall as you want. Create another hotspot and select picture in its appearance. Select an avatar and resize the hotspot. This way the hotspot won't change, even if the other avatars you load are bigger. Finally create a text by right clicking, select the font and the color you want it to be. Write anything you want, it won't be displayed.
Now go to VBS procedures and type these:
- Code: Select all
sub ClearDialogue()
Action.LoadAPicture Hotspot(Action.GetMergedHotspotIndex), ""
Action.LoadAPicture Hotspot(Action.GetMergedHotspotIndex+1), ""
Text(Action.GetMergedTextIndex).caption=""
End Sub
This code will make the dialogues disappear, untill we want them to appear.
Merge the frame with every frame you want the custom dialogues to appear.
In the Frames' advanced write
- Code: Select all
ClearDialogue
All you 've got to do now is go to the hotspot you want to trigger the dialogue from and type this code:
- Code: Select all
Action.LoadAPicture Hotspot(Action.GetMergedHotspotIndex), "theblackpicture.theextention"
Action.LoadAPicture Hotspot(Action.GetMergedHotspotIndex+1), "TheAvatar.Theextention"
Text(Action.GetMergedTextIndex).caption="The message you want to appear"
Action.CreateTimedEvent 4, "ClearDialogue"
where 4 must be replaced with the time you want your message to last.
By working on it, you can create complex dialogues with nice appearance.
Remember that if you want to display two lines you have to type:
- Code: Select all
"The first line"+vblf+"the second line"
hope you liked this. If you have any questions, ask me