Jump to content


Photo

Problem with drawing score and health with views


  • Please log in to reply
3 replies to this topic

#1 arctic waffle

arctic waffle

    GMC Member

  • New Member
  • 2 posts
  • Version:GM8

Posted 15 February 2012 - 02:23 AM

In my draw event for controller_main I have:

set the drawing color to 11855591
draw rectangle with vertices (view_xview0+5,view_yview0+5) and (view_xview0+100,view_yview0+45), filled
set the drawing color to 0
draw rectangle with vertices (view_xview0+5,view_yview0+5) and (view_xview0+100,view_yview0+45), outline
draw the lives at (view_xview+10,view_yview+10) with sprite
at position (view_xview+10,view_yview+28) draw the value of score with caption Score:
if black_key is larger than 0
at position (view_xview+20,view_yview+10) draw image -1 of sprite spr_black_key


It is not drawing anything. WHY???????????????!???????!!!???!?
  • 0

#2 Davido01

Davido01

    GMC Member

  • New Member
  • 905 posts

Posted 15 February 2012 - 02:27 AM

Is the controller_main object visible? Drawing doesn't do anything if the calling object is not visible.
  • 0

#3 arctic waffle

arctic waffle

    GMC Member

  • New Member
  • 2 posts
  • Version:GM8

Posted 15 February 2012 - 02:30 AM

The controller_main is not visible.
  • 0

#4 HayManMarc

HayManMarc

    The HayMan

  • GMC Member
  • 449 posts
  • Version:GM8.1

Posted 15 February 2012 - 07:50 AM

Is the controller_main object visible? Drawing doesn't do anything if the calling object is not visible.


Make sure this is set to visible. Check your depth.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users