2d stuff

Blitz3D Forums/Blitz3D Beginners Area/2d stuff

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

One thing everyone's been missing is that there is nothing in the sample code to blank out the picture when STATUS=0, which is Goober's problem currently.

He needs something like:

if my_img_status = 0 then
drawimage blankimage,my_imgx,my_imgy
endif

just before the drawimage pointer statement at the end.

That should give him what he wants- toggling the image on and off.

Goober: put the handle of your original image in the above IF statement in place of the "blankimage" handle so it will draw the original image back when you click the mouse the second time over the picture (when STATUS=0).