Image not appearing on screen

Blitz3D Forums/Blitz3D Beginners Area/Image not appearing on screen

OwlEpicurus(Posted 2009) [#1]
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?


puki(Posted 2009) [#2]
I'd say move Flip and Cls to after the For/Next loop


_Skully(Posted 2009) [#3]
reverse these... you are CLS'ing your last image

	Cls
	SetBuffer BackBuffer()



OwlEpicurus(Posted 2009) [#4]
Puki:

That fixed the problem, but why did that only affect the last box and not the others?


puki(Posted 2009) [#5]
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.


puki(Posted 2009) [#6]
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.


OwlEpicurus(Posted 2009) [#7]
Thanks.