Here is my first bug report for Hollywood 4.8; it might also show up in previous versions, but I'm not sure.
Notice how the following code changes the name of the second Layer from "Right" to "Left" (and the name "Right" is lost completely). The problem comes from combining a change of the layer's brush ID with a change of Z position in the same SetLayerStyle(). If these are done separately, the code works correctly.
Code: Select all
EnableLayers()
LoadBrush(1, "Test.png", {LoadAlpha=True})
LoadBrush(2, "Test.png", {LoadAlpha=True})
DisplayBrush(1, #LEFT, #CENTER, {Name="Left"})
DisplayBrush(1, #RIGHT, #CENTER, {Name="Right"})
WaitLeftMouse()
SetLayerStyle("Left", {Z=0, ID=2})
;SetLayerStyle("Left", {Z=0})
;SetLayerStyle("Left", {ID=2})
SetLayerStyle("Left", {TranslateY=-10})
HideLayer("Right")
WaitLeftMouse()