Hello ^^,
I want to make an animation of a Robotic Arm that picks something up...
I have wrote this code based on a tutorial.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If cycle Mod 2 = 0 Then
Me.PictureBox1.Image = My.Resources.arm_initial
Else
Me.PictureBox1.Image = My.Resources.arm_leaned
End If
If flip = True Then
Me.PictureBox1.Image.RotateFlip(RotateFlipType.RotateNoneFlipX)
End If
Me.PictureBox1.Left = Me.PictureBox1.Left + x
Me.PictureBox1.Top = Me.PictureBox1.Top + y
cycle += 1
End Sub
Now this code is only for 2 pictures and I want to use 6 pictures for the animation. Can anyone help me to do that?
I want to make an animation of a Robotic Arm that picks something up...
I have wrote this code based on a tutorial.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If cycle Mod 2 = 0 Then
Me.PictureBox1.Image = My.Resources.arm_initial
Else
Me.PictureBox1.Image = My.Resources.arm_leaned
End If
If flip = True Then
Me.PictureBox1.Image.RotateFlip(RotateFlipType.RotateNoneFlipX)
End If
Me.PictureBox1.Left = Me.PictureBox1.Left + x
Me.PictureBox1.Top = Me.PictureBox1.Top + y
cycle += 1
End Sub
Now this code is only for 2 pictures and I want to use 6 pictures for the animation. Can anyone help me to do that?