Anim sequence?
Use a timer. For each tick (=when a Tick event is fired), change the image.
If you want this to run smooth, preload all images before starting the animation.
:sign0085: I am new and I have to learn!
This is what I did and I get errors can you help me?
____________________________________________
Sub Process_Globals
End Sub
Sub Globals
Dim ImageView1 As ImageView
Dim TimerMario As Timer
Dim ImageCounterVar As Int
Dim AnimationImagesNumbers() As String
AnimationImagesNumbers = Array As String ("00","01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11")
ImageCounterVar = 0
Dim AnimationImagesNumbersMax As Int
Dim labCONTROL As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("screen1")
AnimationImagesNumbersMax = 10 'How many images is the PGN set is the same of: AnimationImagesNumbers.Length ?
For animFrames = 1 To 10
TimerMario.Initialize("TimerMario", 1000) 'show it in 1 sec
TimerMario.Enabled = True
Next
End Sub
Sub TimerMario_Tick
If ImageCounterVar <= AnimationImagesNumbersMax Then
ImageView1.Bitmap = LoadBitmap(File.DirAssets, "image-"&AnimationImagesNumbers(ImageCounterVar)&".png")
labCONTROL.Text = "Control:"&AnimationImagesNumbers(ImageCounterVar)&"!" ' This is to print the Number of the frame diplayed
ImageCounterVar = ImageCounterVar + 1
Else If ImageCounterVar > AnimationImagesNumbersMax Then
ImageCounterVar = 1 ' start again from 1
End If
TimerMario.Enabled = False
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
:sign0085: