home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form WALDO_F
- Caption = "WHERE'S WALDO?"
- ClientHeight = 4605
- ClientLeft = 1695
- ClientTop = 1845
- ClientWidth = 6420
- Height = 5010
- Icon = WALDO_F.FRX:0000
- Left = 1635
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 4605
- ScaleWidth = 6420
- Top = 1500
- Width = 6540
- Begin PictureBox Picture4
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 5055
- Left = -2280
- ScaleHeight = 5055
- ScaleWidth = 2535
- TabIndex = 3
- Top = 120
- Visible = 0 'False
- Width = 2535
- End
- Begin PictureBox Picture3
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 4410
- Left = 4680
- Picture = WALDO_F.FRX:0302
- ScaleHeight = 4410
- ScaleWidth = 1860
- TabIndex = 2
- Top = 0
- Visible = 0 'False
- Width = 1860
- End
- Begin PictureBox Picture2
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 4425
- Left = 2760
- Picture = WALDO_F.FRX:4CFC
- ScaleHeight = 4425
- ScaleWidth = 1800
- TabIndex = 1
- Top = 0
- Visible = 0 'False
- Width = 1800
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 4350
- Left = 600
- Picture = WALDO_F.FRX:929A
- ScaleHeight = 4350
- ScaleWidth = 2100
- TabIndex = 0
- Top = 0
- Visible = 0 'False
- Width = 2100
- End
- Begin Timer Timer1
- Interval = 2000
- Left = 120
- Top = 0
- End
- Sub Timer1_Timer ()
- WALDO_F.Show 'Show the main form after small pause
- Waldo 'Run WALDO sub routine of animation
- End 'End of program
- End Sub
- 'This Sub uses three pictures of Waldo and one empty picture box
- 'Set all picture boxes Resize property to True with no borders
- 'Make sure that your Form Background color matches the background of your artwork
- Sub Waldo () 'Declaration of animation section
- For I = 1 To 6 'Runs this loop 6 times
- Picture4.Visible = -1 'Shows picture #4
- Picture4.Picture = picture1.Picture 'put Pic1 in Pic4
- Picture4.Left = Picture4.Left + 200 'Move Pic4 to the right to simulate walking
- Picture4.Picture = picture2.Picture 'Show #2
- Picture4.Left = Picture4.Left + 200 'Move again
- Picture4.Picture = picture3.Picture 'Show #3
- Picture4.Left = Picture4.Left + 200 'Move
- Picture4.Picture = picture2.Picture 'Show #2 Again
- Picture4.Left = Picture4.Left + 200 'Move
- Picture4.Picture = picture1.Picture 'Show #1
- Picture4.Left = Picture4.Left + 200 'Move
- Next I 'Repeat
- Picture4.Visible = 0 'Hide Pic4 when finished
- Picture4.Left = -120 'Reset Pic4 to Far Left of Form
- WALDO_F.Hide 'Close the Form
- End 'End the Program
- 'To increase speed of animation, change 400 to 600 etc.
- End Sub
-