GML Visual Drawing a value on an object makes the object invisible

R

Riley Nassour

Guest
so i have a ball that appears when "L" is held down and a value is drawn on it. when i press "L" it only shows the value and not the ball. In the code for the ball i have a draw event, and for the x coordinate i typed "x" and the y coordinate i typed "y". how to i make the ball visible with the text on top of it.
 
N

Noba

Guest
so i have a ball that appears when "L" is held down and a value is drawn on it. when i press "L" it only shows the value and not the ball. In the code for the ball i have a draw event, and for the x coordinate i typed "x" and the y coordinate i typed "y". how to i make the ball visible with the text on top of it.
Not sure, but try putting draw_self(); in the draw event.
 
J

JFitch

Guest
Noba is correct. The default if there is no draw event is draw_self(). But if you put code in the draw event, the assumption is that you want that to replace the default, so you have to specifically call draw_self().

But make sure you call draw_self() first, otherwise the text will be under the object and you won't see it.
 
Top