Windows Help, can I draw text outside of a draw event?

D

Dimitrygol

Guest
I wrote a script where all I have to do is type: scr_Dialogue("String") and it will write the text in a box, but it only works if I activate the script in a Draw event, If I write it in timelines nothing shows up, even if the time line is activated in a draw event! Is there anyway I can do this outside a draw event?
 

Paskaler

Member
I think all the code in the timeline gets executed in the step event as that is when the current time is updated and such.

You can set a global variable to the string you want to display and then use scr_Dialogue(global.your_string_var);
 
W

whale_cancer

Guest
Are you using surfaces? You can draw to surfaces outside the draw event and simply continually draw the surface itself in your draw event.
 
Top