This is a simple and very cool animation with VB 2008 ***IMPORTANT*** To make this project work you need these two pics- a bat with its wings and an the other bat with its wings down. To get these pics go the following site img121.imageshack.us img5.imageshack.us After going to the link copy and paste the two pics into a directory (simply a place where u know it is like my pics) Public Clas frmMain Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Static x As Integer = 5 Static y As Integer = 0 Static flip As Boolean = False If y Mod 2 = 0 Then Me.PictureBox1.Image = My.Resources.bat1_a Else Me.PictureBox1.Image = My.Resources.bat1_b End If if Me.PictureBox1.Left (Greater Then Sign)= 500 Then x = -5 flip = True ElseIf Me.PictureBox1.Left (less Then Sign)= 0 Then x = 5 flip = False End If If flip = True Then Me.PictureBox1.Image.RotateFlip(RotateFlipType.RotateNoneFlipX) End If Me.PictureBox1.Left = Me.PictureBox1.Left + xy += 1 End Sub End Class The next vid that i will make will show how make the naimation move using the arrow keys π
25 thoughts on “Simple Animation with Visual Basic 2008”
Leave a Reply
You must be logged in to post a comment.
ya i love vb 2008 easy to use but vb 6 is old and not good
@ivandonat YEAH!
@sueroski Yea yea whatever π I did this in one take and kinda rushed because i had to do something important for school back then π
0:30 “Then resize the forum”? I think you want to write “Then resize the form” ;p
Interesting.
hey. . what if i want to make the bat face the other direction. . i mean i want it to face and move from right to left. . how can i do that?
@rashad5010 lol have fun then π
cool bro now i can race pictures lol
@youwasted5secs It will, it just needs a little different code, very little, I know:vb6vb 2008vb 2010c# 2008c# 2010C++ 2008C++ 2010FoxPro 8FoxPro 9batchGame Makerand a few more languages
@boolykbol VB 2010 RULES
nice!
@boolykbol Im using 2010 thanks anyway:phe just asked if it worked on 6but 6 and 2008/2010 are different. . different code styles. just to let him know:)
@boolykbol lol yea VB 2008 does rock.
@ Amg703
VB6 sucks and VB2008 RULES!!!!
If you are using VB6,upgrade to VB2008.
That might be because 6 has a different coding style then 08. Thxs :), Remember to subscribe and rate (Y)
It will not work with 6, and nice:)
thxs alot. =)
@ MrShadeslayer thanx god song and subscribed now: L
The song is called Stronger by Kayne West. And thxs for the rating. plz subscribe.
what is the song and gud video 5 *
To be honest i don’t know, I use vb 2008. I never tried vb 6. 0. Well if you want to give it a try on vb 6. 0, tell me if it works or not.
isn’t it applicable to vb 6. o?
Lol @ amg703 eg