Pixel-Composer/scripts/dialog_management/dialog_management.gml

8 lines
203 B
Plaintext
Raw Normal View History

2022-01-13 05:24:03 +01:00
function dialogCall(_dia, _x = WIN_W / 2, _y = WIN_H / 2) {
var dia = instance_exists(_dia)? instance_find(_dia, 0) : instance_create_depth(_x, _y, 0, _dia);
dia.x = _x;
dia.y = _y;
return dia;
}