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.

Well, as far as i know, if you check for a mouse hit(), any further references to mousehit() will return false.

if mousehit(1) then ;left mouse click ?
flushmouse() ;reset mouse
if imagesoverlap(mouse_img,mousex(),mousey(),button,buttonx,buttony) then
my_img_status = 1 - my_img_status ;this will toggle between 0 and 1
endif
endif


You should have kept the code the same as semar done it. It will work that way :)