For J.U.L.I.A. I wrote a little method, which after you supply string and time does the following:
1. it writes letter by letter the specified and localized string
2. it waits for a specified time and then the text disappear
So how does it work?
1. create a script and call it system_writer.script
2. in scripts/base.inc add
global writer;
3. in scripts/game.script add the following:
4. now whenever you want to use it, try:
Hope this helps.
1. it writes letter by letter the specified and localized string
2. it waits for a specified time and then the text disappear
So how does it work?
1. create a script and call it system_writer.script
Code: WME Script
- #include "scripts/base.inc"
- method Initialize()
- {
- this.win = win;
- win.Visible = false;
- win.X = 0;
- win.Width = 1024;
- win.Y = 374;
- win.Height = 20;
- edit.Height = 20;
- edit.Width = 1024;
- edit.X = 0;
- edit.Y = 0;
- edit.TextAlign = TAL_LEFT;
- this.edit = edit;
- }
- method Write(textToWrite, time)
- {
- var win = this.win;
- var ed = this.edit;
- win.Y = 374;
- ed.Text = "";
- win.Visible = true;
- {
- }
- ed.Text = "";
- win.Visible = false;
- }
2. in scripts/base.inc add
global writer;
3. in scripts/game.script add the following:
Code: WME Script
- writer = new Object("scripts\system_writer.script");
- writer.Initialize();
4. now whenever you want to use it, try:
Code: WME Script
- writer.Write("Testing letter by letter writer.", 1500);
Hope this helps.







Logged


