Advertisement
OmegaGamingHunters

obj_textbox_step

Feb 24th, 2020
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. if (global.InDialogMode == true)
  2. {
  3.     if (Done == false) //The text is still typing out
  4.     {
  5.         if (keyboard_check_pressed(ord("X")) or keyboard_check_pressed(vk_shift))
  6.         {
  7.             CharCount = string_length(ds_list_find_value(Text_DialogSet, Page));
  8.         }
  9.     }
  10.     else if (Done == true) //The text is finished typing
  11.     {
  12.         if (keyboard_check_pressed(ord("Z")) or keyboard_check_pressed(vk_enter))
  13.         {
  14.             if (Page == ds_list_size(Text_DialogSet) - 1)
  15.             {
  16.                 instance_destroy(self, true);
  17.                 obj_player.Frisk_State = PlayerStates.Normal;
  18.                 Page = 0;
  19.             }
  20.             else
  21.             {
  22.                 Page += 1;
  23.                 CharCount = 0;
  24.             }
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement