Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (global.InDialogMode == true)
- {
- if (Done == false) //The text is still typing out
- {
- if (keyboard_check_pressed(ord("X")) or keyboard_check_pressed(vk_shift))
- {
- CharCount = string_length(ds_list_find_value(Text_DialogSet, Page));
- }
- }
- else if (Done == true) //The text is finished typing
- {
- if (keyboard_check_pressed(ord("Z")) or keyboard_check_pressed(vk_enter))
- {
- if (Page == ds_list_size(Text_DialogSet) - 1)
- {
- instance_destroy(self, true);
- obj_player.Frisk_State = PlayerStates.Normal;
- Page = 0;
- }
- else
- {
- Page += 1;
- CharCount = 0;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement