|
Post by megamushroom on Apr 12, 2004 16:00:24 GMT -5
ok, i am trying to make a dialogue system, using a script and arguments. but i cant draw it? here is my code; object0 draw event: a script, text : global.message=argument0
font_size=10
draw_polygon_begin() draw_polygon_vertex(45,200) draw_polygon_vertex(123,200) draw_polygon_vertex(123,215) draw_polygon_vertex(343,215) draw_polygon_vertex(343,290) draw_polygon_vertex(123,290) draw_polygon_vertex(123,297) draw_polygon_vertex(45,297) draw_polygon_end() //text box draw_rectangle(120,219,341,288) //avatar box draw_roundrect(48,203,121,295)
draw_text_ext(130,222,string(global.message),-1,200)
and in object1, in the space press event:
text("HIIII")
when i press space, the text does'nt appear, and i have no idea why!.
|
|
|
Post by IsmAvatar on Apr 13, 2004 15:37:24 GMT -5
Because it's in the space event?
DRAW STUFF IN THE DRAW EVENT!!!
|
|
|
Post by megamushroom on Apr 13, 2004 15:49:12 GMT -5
hmm, but i execute the script in the draw event! so does that mean i have to call it in a draw event as well? wow, you learn something new every day!
Edit, ok, now i get what you mean, i am redrawing the script, not adding to it. stupid me
thanks
|
|
|
Post by IsmAvatar on Apr 13, 2004 16:05:29 GMT -5
Glad I could help
|
|