[04 Mar 2008] Another problem :D
Posted: Sat Jun 13, 2020 5:31 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 04 Mar 2008 18:40:23 +0100
i have a little problem here when moving layers...
the code first
)
With this code i want to scroll the layer 1 from the top outside the screen to the bottom. My image is a 256x1013 pixel jpeg. The problem i've found is that, for a while the layer scroll, then the program hangs and the debugger tells me : Internal limit encountered! Contact the author.... Line bla.. bla.. in AddMove
Any suggestions?
i have a little problem here when moving layers...
the code first
Code: Select all
@BRUSH 1, "Hollywood.png", {LoadAlpha = True}
@BRUSH 2, "image15.jpg"
DisplayBGPic(1)
EnableLayers()
DisplayBrush(2, 16,#TOPOUT)
DisplayBrush(1, 0, 0)
i = -1013
Function p_MainLoop()
If i < 0
AddMove(1, #LAYER, 1, 16, i)
i=i+1
DoMove(1)
EndIf
EndFunction
SetInterval(1, p_MainLoop, 1000/60) ; 60fps
Repeat
WaitEvent
Forever
Any suggestions?