Advertisement
Guest User

Draw Event Titlescreen Dialogue

a guest
Nov 14th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. /// start game cut ///
  2.  
  3. // if room is start cut //
  4. if room = room_start_cut {
  5.  
  6. // if starttext enabled, draw starting text //
  7. if starttext = true {
  8. draw_text(128,100,printed);
  9. }
  10.  
  11. // if movecontrollock is unlocked //
  12. if global.movecontrollock = true {
  13.  
  14. scrolltimer ++;
  15.  
  16. // if scrolltimer >= 50, disables one time code and holding text, set scrolltimer to 0 //
  17. if scrolltimer >= 50 and starttext = true {
  18. starthold = false;
  19. starttext = false;
  20. scrolltimer = 0;
  21. }
  22.  
  23. // if holding text is disabled, if scroll timer >= 3 //
  24. if starthold = false {
  25. if scrolltimer >= 3 {
  26.  
  27. // character to be added = list(printedline, strcharpos) //
  28. // printed phrase = current printed phrase + character //
  29. //character = ds_list_find_value(printedline, strcharpos);
  30. printed = string_copy(printedline,1,strcharpos + 1)
  31.  
  32. strcharpos ++;
  33. scrolltimer = 0;
  34.  
  35. }
  36. }
  37.  
  38. // if list position >= size of printing list, printing line = script start lines //
  39. if strcharpos >= string_length(printedline) {
  40. starthold = true
  41.  
  42. if scrolltimer >= 240 and printedline = page1 {
  43. printedline = page2
  44. scrolltimer = 0;
  45. starthold = false;
  46. strcharpos = 0;
  47. }
  48.  
  49. if scrolltimer >= 240 and printedline = page2 {
  50. printedline = page3
  51. scrolltimer = 0;
  52. starthold = false;
  53. strcharpos = 0;
  54. }
  55.  
  56. if scrolltimer >= 240 and printedline = page3 {
  57. global.fadein = 1;
  58. instance_create(0,0,obj_fade);
  59. }
  60. }
  61.  
  62. // draw printed //
  63. draw_text(128,100,printed);
  64.  
  65. }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement