turnstates
This commit is contained in:
parent
1a13781220
commit
cd85677efd
57 changed files with 1813 additions and 104 deletions
47
eastern flames/scripts/c_charpush/c_charpush.gml
Normal file
47
eastern flames/scripts/c_charpush/c_charpush.gml
Normal file
|
@ -0,0 +1,47 @@
|
|||
function c_charpush(char) {
|
||||
var i;
|
||||
for (i=0; i<array_length(talker); i++) {
|
||||
//log(i);
|
||||
//log(char);
|
||||
//log(talker);
|
||||
if char.name == talker[i].name {
|
||||
if char.position == SPRITEPOS.REPLACE {
|
||||
char.position = talker[i].position;
|
||||
}
|
||||
char.x = talker[i].x;
|
||||
char.y = talker[i].y;
|
||||
char.alpha = talker[i].alpha;
|
||||
array_delete(talker, i, 1);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
array_insert(talker, 0, char);
|
||||
}
|
||||
|
||||
function talkchar(spriteindex_=s_null, name_="", position_=SPRITEPOS.HIDDEN) constructor {
|
||||
sprite = global.textguy[?string_lower(name_)].sprite;
|
||||
talksound = global.textguy[?string_lower(name_)].talksound;
|
||||
textspeed = global.textguy[?string_lower(name_)].textspeed;
|
||||
texteffects = global.textguy[?string_lower(name_)].texteffects;
|
||||
namecolor = global.textguy[?string_lower(name_)].namecolor;
|
||||
name = name_;
|
||||
index = spriteindex_;
|
||||
position = position_;
|
||||
x = o_textbox.x+(position-2)*o_textbox.width/5;
|
||||
y = o_textbox.spriteposy;
|
||||
alpha = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*global.textguy[?"drip"] = s_drip;
|
||||
global.textguy[?"spamton g. spamton"] = s_drip;
|
||||
global.textguy[?""] = s_null;
|
||||
global.textguy[?"reimu"] = s_reimu16;
|
||||
global.textguy[?"aunn"] = s_aunn16;
|
||||
global.textguy[?"mike"] = s_mike16;
|
||||
global.textguy[?"yukari"] = s_yukari16;
|
||||
global.textguy[?"reisen"] = s_reisen16;
|
||||
global.textguy[?"yumemi"] = s_yumemi16;
|
||||
global.textguy[?"chiyuri"] = s_chiyuri16;*/
|
||||
|
12
eastern flames/scripts/c_charpush/c_charpush.yy
Normal file
12
eastern flames/scripts/c_charpush/c_charpush.yy
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"isDnD": false,
|
||||
"isCompatibility": false,
|
||||
"parent": {
|
||||
"name": "Textbox",
|
||||
"path": "folders/Textbox.yy",
|
||||
},
|
||||
"resourceVersion": "1.0",
|
||||
"name": "c_charpush",
|
||||
"tags": [],
|
||||
"resourceType": "GMScript",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue