Hello. I need some help with something. How do you stop drawing an object? I can’t find any help anywhere. Thanks!
That depends on what you’re doing. Since you didn’t go into details, here’s a simple example of drawing/not drawing something.
function setup()
show=true
end
function draw()
background(40, 40, 50)
fill(255)
text("tap screen to hide or show sprite",WIDTH/2,HEIGHT-100)
if show then
sprite("Planet Cute:Character Horn Girl",WIDTH/2,HEIGHT/2)
end
end
function touched(t)
if t.state==BEGAN then
show=not show
end
end
Thankyou so much! That’s exactly what I needed