Added: 2 years ago
From: MrShadeslayer
Views: 26,422
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (58)

Sign In or Sign Up now to post a comment!
  • Comment removed

  • exelente thanks =D

  • just did it , thanks :D

  • My object isn't moving.

    I have a timer and an unlocked image object in my form.

    here's the code; (Note that I am only testing out the movement, without the "imageflip" stuff)

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Static x As Integer = 5 If circle.Left >= 500 Then x = -5 ElseIf circle.Left <= 0 Then x = 5 End If Me.circle.Left = Me.circle.Left + x End Sub

  • @SeriousIlya

    DW everything works ok now. I just forgot to enable the timer :)

  • nope actually im using visual 2010 witch may be the prob like the rest of the codes...

  • @DeCoDeNation Than why are you complaining if you using a newer version of visual basic? Its common sense! If you are going to use an updated program, obviously the coding might change a bit.

  • the codes are incorrect plus its not fourms its forms o and theres some other spell mistakes also.

  • @DeCoDeNation Whatever you say troll :) fyi the code works for everyone else. Either you cant read or just love to troll :D

  • or you can just make that into animated GIF, and put it into PictureBox, dont need to waste time with this little stuff:D

  • Comment removed

  • ╭∩╮(︶︿︶)╭∩╮

  • It dont do anything whit me

  • what music is it can you tell me the name of this music

  • do this work on 2010 version?

  • @linkinl1 Hopefully it should

  • what happens if the image goes out of the form?

  • @dlilwun

    You can tell by looking at the code -.-

  • wow,,,great

  • Very nice video tutorial.

  • Timer1_Tick Dim var1 as integer = 0 If var1 = 3 = true var1 = 0 else var1 = var1 + 1 end if If var1 = 1 = true then Picturebox1.image = my.resources.BatA end if if var1 = 2 = true then Picturebox1.image = my.resources.BatB end if
  • WHY would you use 500?

  • Very good tutorial

  • what if i need to cycle through more than two images? like three or four? what kind of loop do I use and how would it look?

  • How do I slow down the animation>??? D:

  • @deathkid64 Change the number for the timer

  • @MrShadeslayer Thanks MAN! You just helped me finish my Senior Term Project xD

  • Ah i see you changed the "flip" date type to boolean, of course its not an integer. Why do you not use prefixes?

  • this is good! tnx men!

  • @killuabone No problem :)

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

  • @sueroski Yea yea whatever :P I did this in one take and kinda rushed because i had to do something important for school back then :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?

  • cool bro now i can race pictures lol

  • @rashad5010 lol have fun then :P 

  • It will not work with 6,

    and nice:)

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

  • If you are using VB6,upgrade to VB2008.

  • @boolykbol Im using 2010 thanks anyway:p

    he just asked if it worked on 6

    but 6 and 2008/2010 are different..

    different code styles.

    just to let him know:)

  • @youwasted5secs It will, it just needs a little different code, very little, I know: vb6 vb 2008 vb 2010 c# 2008 c# 2010 C++ 2008 C++ 2010 FoxPro 8 FoxPro 9 batch Game Maker and a few more languages
  • wat is the song and gud video 5*

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

  • @MrShadeslayer thanx gud song and subscribed now:L

  • thxs alot. =)

  • isn't it applicable to vb 6.o?

  • 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.

  • VB6 sucks and VB2008 RULES!!!!

  • @boolykbol lol yea VB 2008 does rock.

  • @boolykbol

    VB 2010 RULES

  • @ivandonat YEAH!

  • awesome thanks

  • @amg703 lol np

  • @amg703

  • The next vid that i will make will show how make the naimation move using the arrow keys :)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more