1{
2id: "scrolling_text_controller",
3ignore_collide: true,
4always_active: true,
5hidden_in_game: true,
6properties: {
7	set_text: "def(text) [set(vars.txt, text), fire_event(me, 'load')]",
8},
9vars: {
10	txt: "TEXT",
11	size: 1,
12},
13on_load: "[ if(txt, text(txt, 'default', size))]",
14on_editor_changed_variable: "fire_event('load')",
15on_end_anim: "animation('normal')",
16zorder: 50,
17on_process: "set(y, y-1)",
18on_editor_added: "if(txt, text(txt, 'default', size))",
19editor_info: {
20	category: "controllers",
21	var: [
22		{
23			name: "txt",
24			type: "text",
25			value: "'TEXT'",
26		},
27		{
28			name: "size",
29			value: 1,
30		},
31	],
32},
33animation: {
34	id: "normal",
35	image: "effects/particles.png",
36	x: 148,
37	y: 42,
38	w: 28,
39	h: 28,
40	frames: 1,
41	duration: 1000,
42},
43}
44