Slowly reveal image

BlitzMax Forums/BlitzMax Beginners Area/Slowly reveal image

DannyD(Posted 2006) [#1]
Hi,
I'd like to display an image slowly. Imagine an image that is releaved from top to bottom in 10 seconds. Anyone got any ideas on how to create something along these lines?

Thanks in advance.


tonyg(Posted 2006) [#2]
Either use setviewport or draw a 'nearly' black rect over it and reduce the size over time.


Qweeg(Posted 2006) [#3]
Could you draw a black image over the top of your image? Initially the black image is the same size, but you gradually scale down the Y scale of the black image each iteration. As the black image became smaller more of the underlying image would be revealed.

This would be revealed from the bottom to the top though, so I think you would need to change the image handle (of the black image) to get it to reveal from the top to the bottom.

[EDIT]
Tony got there first - a rectangle is better than my solution


DannyD(Posted 2006) [#4]
Thanks for the tips guys!