Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 03 Oct 2008 22:13:31 +0200
Hello Andreas, I've some questions for you ^^
- An user with OS4 has reported that after quitting HFinder launched from RAM: the ram device results locked, I've no idea how to check this issue, but maybe is something related with the Hollywood VM since it should release all resources before exiting.
Hmm, weird. Back in April, Zoltan reported a similar issue but I was not able reproduce it and didn't mention it again. Can you ask the user for a complete bug report? I need to know what he's doing *exactly* - step by step. It's definitely a Hollywood issue because nothing should be left locked when Hollywood exists but I need to be able to reproduce it here, otherwise I don't know where to start looking.
Maybe Lazi could also comment on this issue? Did you resolve the problem you reported to me in April 2008?
- I'm coding a simple puzzle game and sometimes pop up a message saying that there are no more sound channels to play the sample (or something similar

), I'm wondering if I have to free the channel manually with
StopSample() or the channel is freed by the system after it has been played. When the error occurs there are only a module playing and some effects played when the user click some areas.
No, you don't have to call
StopSample(). Hollywood will automatically the sample's channel once it has finished.
Under AHI, however, there is a limit of 7 samples at the same time. But I suppose you don't have so many samples playing, so it's weird that you get this error. What version are you on? MorphOS? OS3?
- I've not understood well how aplha channel works with brushes, I was used to have functions with an alpha value that control the global transparency of the brush, but how can I do this in Hollywood? For example, if I have a brush and I want to fade in or out manually, without the pre-made transition fx, how can I do? Can you post a simple example?
There are lots of different way to do this. If layers are on, you can simply call
SetLayerTransparency() a number of times to fade in/out.
If you're working without layers, you could create a second brush that contains the background and then mix the background brush with the foreground brush a number of times using
MixBrush().
If the background is a static color, you do not have to use
MixBrush() at all. You could simply use
TintBrush() in that case.
If you want to use alpha channels, you can call
SelectAlphaChannel() on your brush and then use
Cls() a number of times to set a global alpha value.
The basic idea behind fading is to increase the visibility of the brush. Just iterate over a loop from 0 to 255 and make the brush more and more visible (0 = invisible, 255 = visible).