LCD Question
Can someone help me out with LCD? I need to have a graphic that moves up and down inside an LCD object. As it moves up and down, I want it to reveal and covers respectively a background image. I've tried it with png, and gif files (ones that allow transparency), and with pict files. The png and gif files will only move one direction, and won't move the other direction. The pict file will move both directions, but, of course, doesn't allow transparency. The attached zip file contains a folder with a demo patch and three graphic files in png, gif, and pict format.
Is there a way to do what I want? I also tried using paintrect in LCD, but it doesn't remove the old image when you try to reposition it. Thanks for any help or suggestions!
Is this a bug in LCD? Is there a current list of what image file types it supports?
Did you try sprites?
Thanks for the suggestion. I had considered sprites, but I was having trouble wrapping my brain around all the sprite commands. After experimenting with it for awhile, I got it to work, and yes, it does what I want. There are numerous comments to the effect that using sprites causes [lcd] to use more memory. Do you happen to know if it is a significant amount?
"I also tried using paintrect in LCD, but it doesn't remove the old image when you try to reposition it."
clear, draw background, draw new foreground?
I actually did think about doing it that way, but there are a lot of fast movements (a couple hundred per second), and I was afraid trying to do that many steps so frequently might bog things down. Thanks for the suggestion, though.
You just need to send a clear message. Or use sprites as mentioned above.
Thanks everybody! Great suggestions and ideas!