Basically, I'm writing all of my cut-scenes in notepad (which worked wonders on my screen transitions, although the game wrote those text files), and It works fine...
except that only the dialogue box, my character, and the save point get drawn. I've tried switching around screen_redraw() and screen_refresh(), and that gets everything I needed drawn, however; it seems that screen_refresh() only works for a single frame and then the dialogue box disappears...
In the text file (Beginning.PHcut) :
while(DialogueBox("Claire","Ahh, what a lovely day today is! I wonder what Charming's up to... Well, no time to dawdle, I have to prepare for the ball!"))
{
sleep(33);
event_perform(ev_step,ev_step_begin);
event_perform(ev_step,ev_step_normal);
event_perform(ev_step,ev_step_end);
screen_redraw();
}
//This is so that I can kind of get my function to last multiple frames, also the player doesn't have control during a cut-scene!
The DialogueBox Function:
Dx = view_xview[0];
Dy = view_yview[0];
DrawMenuRectangle(Dx+16,Dy+16,Dx+622,Dy+180,false);
draw_set_font(SmallTimes);
draw_set_halign(fa_left);
draw_text_ext(Dx+20,Dy+20," "+argument1,32,606);
DrawMenuRectangle(Dx+4,Dy+4,Dx+104,Dy+36,false);
draw_text(Dx+8,Dy+8,argument0);
DrawMenuButton(Dx+582,Dy+140,Dx+614,Dy+172,"A");
screen_refresh();
//This is *supposed* to draw my dialogue box, but it only appears for a frame...
return !(keyboard_check_released(ord('A'))|| (mouse_check_button_released(mb_left) && mouse_x > Dx+582 && mouse_x < Dx+614 && mouse_y > Dy+140 && mouse_y < Dy+172));
//This is for the while loop in the notepad file... I should probably get around to a "MouseOver" function...
EDIT: Also, I think I should mention, I can't cheese myself out of this by creating a sprite of the dialogue box; I don't have the pro version...
Edited by sebmansigh, 31 March 2012 - 12:20 AM.



This topic is locked








