OmegaGamingHunters

obj_testflowey_step_event_update2

Aug 23rd, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. if (InDialog == false and (keyboard_check_pressed(ord("Z")) or keyboard_check_pressed(vk_enter)) and place_meeting(x+4, y+4, obj_player))
  2. {
  3.     InDialog = true;
  4.     global.Frisk_State = PlayerStates.Dialog;
  5. }
  6. 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)
  7. {
  8.     if (i = array_length_1d(TestDialog) - 1)
  9.     {
  10.         scr_DialogClear();
  11.         InDialog = false;
  12.         global.Frisk_State = PlayerStates.Normal;
  13.         i = 0;
  14.         Dialog_String = TestDialog[i];
  15.     }
  16.     else
  17.     {
  18.         i += 1;    
  19.         Dialog_String = TestDialog[i];
  20.     }
  21. }
  22.  
  23. if (InDialog == true and DoneSpeaking == false and (keyboard_check_pressed(ord("X")) or keyboard_check_pressed(vk_shift)))
  24. {
  25.     scr_DialogJump();
  26. }
Advertisement
Add Comment
Please, Sign In to add comment