camera_set_view_pos(CAM, xpos, 0)
xpos = approach(xpos, 960, 0.3)

l += 0.6
print_ = string_copy(str, 1, l)

if (l >= string_length(str) && keyboard_check_pressed(vk_space) && next < array_length(text) - 1){
	l = 0
	next++
	if (next == array_length(text) - 1) done = true
}

str = text[next]

if (done == true && l >= 10 && keyboard_check_pressed(vk_space)) room_goto_next()


if (keyboard_check(ord("Q")) && ++timer > 100) room_goto_next()

