Code:
Speech {PC, Explorations is a truly awesome Game Development Interface!}
Dialog {PC, Explorations is a truly awesome Game Development Interface!}
EndEnc
The Speech/Dialog Command allows you to create a speech dialog for any sprite. The Speech bubble is attached to the sprite and will move when the sprite moves. It is overlayed on the screen like the user interface controls.
The Speech/Dialog effect is controlled by a simply eMotions script file.
\GUI\SPEECHDIALOG.MOTION By simply setting a series of SPEECH_ script variables and executing the .MOTION file, a Speech bubble will appear and attach itself to any sprite. the dialog will size vertically and word wrap any text of your choice.
The control variables for the Speech Dialog:
Code:
SPEECH_HND$
- The Handle of the Sprite that the dialog is attached.
SPEECH_X%
- The left location of the speech dialog. (in pixels)
SPEECH_Y%
- The top location of the speech dialog. (in pixels)
SPEECH_W%
- The width of the speech dialog box. (in pixels)
SPEECH_IMAGE$
- The image used to create the speech bubble. eMotions has default images, but you can replace this border
template with your own.
SPEECH_INFO$
- The actual text that will appear within the speech dialog.