Jump to content


Photo

draw* commands only seem to work with message


  • Please log in to reply
2 replies to this topic

#1 MissWB

MissWB

    GMC Member

  • New Member
  • 13 posts

Posted 19 October 2011 - 05:07 AM

I just started using GameMaker HTML 5 1.0 today and tried drawing a circle and some text onscreen
in response to a click event on my object.
Sadly, the neither the text nor the circle display in my room. Then I noticed that if I added a "Display a Message" action to the click, it would not
only display the message, but also draw my circle and text. As soon as the pop-up for the message goes away, so does my text.

Below is my code snippet.


//
draw_set_font(Arial);
draw_set_color(c_red);
show_debug_message("Hi World");
draw_text(10,10,"What the heck?");

How should I resolve this?
  • 0

#2 xxskxx

xxskxx

    GMC Member

  • New Member
  • 47 posts

Posted 19 October 2011 - 05:34 AM

All drawing actions must be written in draw-event.
  • 0

#3 MissWB

MissWB

    GMC Member

  • New Member
  • 13 posts

Posted 19 October 2011 - 06:13 AM

ok. Works now. thanks

All drawing actions must be written in draw-event.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users