Skip to content

Ozar.net Developer Blog

Programming in PHP, C, C#, ASP.NET, Java, Objective-C, SQL also for MS SQL Server, Oracle & MySQL Development

Menu
  • Home
  • About
  • Tutorials
  • Contact
  • Privacy
Menu

Simple Animation with Visual Basic 2008

Posted on September 28, 2010September 28, 2010 by OD


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”

  1. TheTeaBagTeam says:
    September 28, 2010 at 12:27 PM

    ya i love vb 2008 easy to use but vb 6 is old and not good

    Log in to Reply
  2. BeezDuL says:
    September 28, 2010 at 1:08 PM

    @ivandonat YEAH!

    Log in to Reply
  3. MrShadeslayer says:
    September 28, 2010 at 1:59 PM

    @sueroski Yea yea whatever 😛 I did this in one take and kinda rushed because i had to do something important for school back then 😛

    Log in to Reply
  4. sueroski says:
    September 28, 2010 at 2:42 PM

    0:30 “Then resize the forum”? I think you want to write “Then resize the form” ;p

    Log in to Reply
  5. TheBushybrows says:
    September 28, 2010 at 3:02 PM

    Interesting.

    Log in to Reply
  6. jinell14 says:
    September 28, 2010 at 3:49 PM

    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?

    Log in to Reply
  7. MrShadeslayer says:
    September 28, 2010 at 4:11 PM

    @rashad5010 lol have fun then 😛

    Log in to Reply
  8. rashad5010 says:
    September 28, 2010 at 4:46 PM

    cool bro now i can race pictures lol

    Log in to Reply
  9. ballader1 says:
    September 28, 2010 at 4:51 PM

    @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

    Log in to Reply
  10. ivandonat says:
    September 28, 2010 at 5:38 PM

    @boolykbol VB 2010 RULES

    Log in to Reply
  11. fily96 says:
    September 28, 2010 at 5:45 PM

    nice!

    Log in to Reply
  12. youwasted5secs says:
    September 28, 2010 at 5:51 PM

    @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:)

    Log in to Reply
  13. MrShadeslayer says:
    September 28, 2010 at 6:20 PM

    @boolykbol lol yea VB 2008 does rock.

    Log in to Reply
  14. MrShadeslayer says:
    September 28, 2010 at 6:32 PM

    @ Amg703

    Log in to Reply
  15. boolykbol says:
    September 28, 2010 at 6:35 PM

    VB6 sucks and VB2008 RULES!!!!

    Log in to Reply
  16. boolykbol says:
    September 28, 2010 at 6:48 PM

    If you are using VB6,upgrade to VB2008.

    Log in to Reply
  17. MrShadeslayer says:
    September 28, 2010 at 7:27 PM

    That might be because 6 has a different coding style then 08. Thxs :), Remember to subscribe and rate (Y)

    Log in to Reply
  18. youwasted5secs says:
    September 28, 2010 at 7:41 PM

    It will not work with 6, and nice:)

    Log in to Reply
  19. MrShadeslayer says:
    September 28, 2010 at 8:40 PM

    thxs alot. =)

    Log in to Reply
  20. razza97iscool97 says:
    September 28, 2010 at 9:03 PM

    @ MrShadeslayer thanx god song and subscribed now: L

    Log in to Reply
  21. MrShadeslayer says:
    September 28, 2010 at 9:12 PM

    The song is called Stronger by Kayne West. And thxs for the rating. plz subscribe.

    Log in to Reply
  22. razza97iscool97 says:
    September 28, 2010 at 10:08 PM

    what is the song and gud video 5 *

    Log in to Reply
  23. MrShadeslayer says:
    September 28, 2010 at 11:07 PM

    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.

    Log in to Reply
  24. 21krizchristensen says:
    September 28, 2010 at 11:47 PM

    isn’t it applicable to vb 6. o?

    Log in to Reply
  25. MrShadeslayer says:
    September 29, 2010 at 12:41 AM

    Lol @ amg703 eg

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Recent Posts

  • NSTableView with Core Data Tutorial using NSFetchedResultsController
  • CodeIgniter Wizard – a new PHP CRUD Code Generator for macOS
  • Installing Oracle Database 10g Express Edition and Changing the Default HTTP Port
  • Xcode Tutorial 2 – Putting iAd into your App (The Apple Approved Way)
  • Cocoa Programming: A Quick-Start Guide for Developers

Blogroll

  • All Systems GO
  • GOZmosis
  • Maclord's Blog
  • Ozar.net

Tags

.NET 2008 application ASP.NET basic Beginning best books business Business Objects C# Database Databases Development Edition Guide iPhone Java Java EE learn Learning Microsoft MS SQL Server MySQL Objective-C Programming objects Oracle Part PHP PL/SQL Professional Programming Server Software SQL T-SQL TSQL Tutorial Tutorials Using Video Visual Visual Basic .NET Web Programming Tutorials XCode
© 2026 Ozar.net Developer Blog | Powered by Minimalist Blog WordPress Theme

Powered by
►
Necessary cookies enable essential site features like secure log-ins and consent preference adjustments. They do not store personal data.
None
►
Functional cookies support features like content sharing on social media, collecting feedback, and enabling third-party tools.
None
►
Analytical cookies track visitor interactions, providing insights on metrics like visitor count, bounce rate, and traffic sources.
None
►
Advertisement cookies deliver personalized ads based on your previous visits and analyze the effectiveness of ad campaigns.
None
►
Unclassified cookies are cookies that we are in the process of classifying, together with the providers of individual cookies.
None
Powered by