Hiding an image

Blitz3D Forums/Blitz3D Beginners Area/Hiding an image

I usually create a type

ie Type man
field x,y,visible

then set visible to 1

in your collision detection code set the man\visible field to 0 when you want it to disappear

Somewhere in main loop I have drawman() call to a function which looks like this

function drawman()

if man\visible=1 then

drawimage(man,x,y)

else

'any code you want to add here, usually dont require the else bit

end function

And then just set the field back to 1 when you want it to reappear!