turnstates
This commit is contained in:
parent
1a13781220
commit
cd85677efd
57 changed files with 1813 additions and 104 deletions
36
eastern flames/scripts/textline_next/textline_next.gml
Normal file
36
eastern flames/scripts/textline_next/textline_next.gml
Normal file
|
@ -0,0 +1,36 @@
|
|||
function textline_next() {
|
||||
do {
|
||||
draw_set_font(font);
|
||||
skipped = false;
|
||||
waiting = 0;
|
||||
waited = array_create(20);
|
||||
pressing = 0;
|
||||
pressed = array_create(20);
|
||||
if txtprocessed {
|
||||
if msg[talkpos].type == "normal" {
|
||||
array_push(backlog, msg[talkpos]);
|
||||
}
|
||||
talkpos++;
|
||||
if msg[talkpos].type == "ptxt" {
|
||||
backlog = [];
|
||||
}
|
||||
}
|
||||
var dudes = font_get_size(draw_get_font())*.8;
|
||||
var dudes2 = floor((width-margin*2)/dudes);
|
||||
//log(dudes2);
|
||||
msg[talkpos].text = lb_auto(msg[talkpos].text, dudes2);
|
||||
//log(msg[talkpos]);
|
||||
talklength = string_length(msg[talkpos].text);
|
||||
drawing = "";
|
||||
drawchars = 0;
|
||||
name = msg[talkpos].name;
|
||||
msg[talkpos].event();
|
||||
c_charpush(new talkchar(msg[talkpos].sprite, msg[talkpos].name, msg[talkpos].spritepos));
|
||||
talkspeed = talker[0].textspeed;
|
||||
if msg[talkpos].bg != "UNCHANGED" bg = msg[talkpos].bg;
|
||||
didsounds = array_create(999);
|
||||
didfuncs = array_create(999);
|
||||
atsound = 0;
|
||||
atfunc = 0;
|
||||
} until msg[talkpos].type == "normal" || (string_contains(msg[talkpos].text, "|w") && !string_contains(msg[talkpos].text, "|w0000"));
|
||||
}
|
12
eastern flames/scripts/textline_next/textline_next.yy
Normal file
12
eastern flames/scripts/textline_next/textline_next.yy
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"isDnD": false,
|
||||
"isCompatibility": false,
|
||||
"parent": {
|
||||
"name": "Textbox",
|
||||
"path": "folders/Textbox.yy",
|
||||
},
|
||||
"resourceVersion": "1.0",
|
||||
"name": "textline_next",
|
||||
"tags": [],
|
||||
"resourceType": "GMScript",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue