Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// start game cut ///
- // if room is start cut //
- if room = room_start_cut {
- // if starttext enabled, draw starting text //
- if starttext = true {
- draw_text(128,100,printed);
- }
- // if movecontrollock is unlocked //
- if global.movecontrollock = true {
- scrolltimer ++;
- // if scrolltimer >= 50, disables one time code and holding text, set scrolltimer to 0 //
- if scrolltimer >= 50 and starttext = true {
- starthold = false;
- starttext = false;
- scrolltimer = 0;
- }
- // if holding text is disabled, if scroll timer >= 3 //
- if starthold = false {
- if scrolltimer >= 3 {
- // character to be added = list(printedline, strcharpos) //
- // printed phrase = current printed phrase + character //
- //character = ds_list_find_value(printedline, strcharpos);
- printed = string_copy(printedline,1,strcharpos + 1)
- strcharpos ++;
- scrolltimer = 0;
- }
- }
- // if list position >= size of printing list, printing line = script start lines //
- if strcharpos >= string_length(printedline) {
- starthold = true
- if scrolltimer >= 240 and printedline = page1 {
- printedline = page2
- scrolltimer = 0;
- starthold = false;
- strcharpos = 0;
- }
- if scrolltimer >= 240 and printedline = page2 {
- printedline = page3
- scrolltimer = 0;
- starthold = false;
- strcharpos = 0;
- }
- if scrolltimer >= 240 and printedline = page3 {
- global.fadein = 1;
- instance_create(0,0,obj_fade);
- }
- }
- // draw printed //
- draw_text(128,100,printed);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement