Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (InDialog == false and (keyboard_check_pressed(ord("Z")) or keyboard_check_pressed(vk_enter)) and place_meeting(x+4, y+4, obj_player))
- {
- InDialog = true;
- global.Frisk_State = PlayerStates.Dialog;
- }
- else if (InDialog == true and (keyboard_check_pressed(ord("Z")) or keyboard_check_pressed(vk_enter)) and place_meeting(x+4, y+4, obj_player) and DoneSpeaking == true)
- {
- if (i = array_length_1d(TestDialog) - 1)
- {
- scr_DialogClear();
- InDialog = false;
- global.Frisk_State = PlayerStates.Normal;
- i = 0;
- Dialog_String = TestDialog[i];
- }
- else
- {
- i += 1;
- Dialog_String = TestDialog[i];
- }
- }
- if (InDialog == true and DoneSpeaking == false and (keyboard_check_pressed(ord("X")) or keyboard_check_pressed(vk_shift)))
- {
- scr_DialogJump();
- }
Advertisement
Add Comment
Please, Sign In to add comment