Image not appearing on screen
Blitz3D Forums/Blitz3D Beginners Area/Image not appearing on screen
| ||
I decided to write a small program that could help me improve my knowledge of programming and Japanese at the same time. I've encountered a bit of a strange problem, though, and I have no idea what the error is. This is supposed to produce a main menu that offers the user 5 different options as well as displaying what the currently selected lesson is. For the most part, it does exactly that. However, the 'Exit' box disappears when highlighted. None of the others do, yet the same bit of code draws all of them. What is the cause of this? |
| ||
I'd say move Flip and Cls to after the For/Next loop |
| ||
reverse these... you are CLS'ing your last imageCls SetBuffer BackBuffer() |
| ||
Puki: That fixed the problem, but why did that only affect the last box and not the others? |
| ||
Heh, that explains why my suggestion would work. I knew it was something like that when I saw the Flip at the start of the loop. |
| ||
Your last box is exactly that - the last one before you free the image in your loop - you were killing it. The last box would always be affected. |
| ||
Thanks. |