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
@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.
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
@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
Comment removed
ToothPickHD 3 weeks ago
This has been flagged as spam show
Hi! Could you guys please check out my channel? I will do a giveaway when I reach 100 subscribers! Thanks!
hackster2011 2 months ago
exelente thanks =D
izabelita89 4 months ago
just did it , thanks :D
hhlnn1 5 months ago
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 7 months ago
@SeriousIlya
DW everything works ok now. I just forgot to enable the timer :)
SeriousIlya 7 months ago
nope actually im using visual 2010 witch may be the prob like the rest of the codes...
DeCoDeNation 7 months ago
@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.
MrShadeslayer 7 months ago
the codes are incorrect plus its not fourms its forms o and theres some other spell mistakes also.
DeCoDeNation 7 months ago
@DeCoDeNation Whatever you say troll :) fyi the code works for everyone else. Either you cant read or just love to troll :D
MrShadeslayer 7 months ago
or you can just make that into animated GIF, and put it into PictureBox, dont need to waste time with this little stuff:D
TamilRajaVideos 7 months ago
Comment removed
ToothPickHD 3 weeks ago
╭∩╮(︶︿︶)╭∩╮
cosreta 7 months ago
It dont do anything whit me
SweRdiOfiree 8 months ago
what music is it can you tell me the name of this music
hacking38 8 months ago
do this work on 2010 version?
linkinl1 10 months ago
@linkinl1 Hopefully it should
MrShadeslayer 10 months ago
what happens if the image goes out of the form?
dlilwun 11 months ago
@dlilwun
You can tell by looking at the code -.-
TheNeoJer 9 months ago
wow,,,great
MsDianne10 11 months ago
Very nice video tutorial.
UserIsAnFBIAgent 1 year ago
UserIsAnFBIAgent 1 year ago
WHY would you use 500?
psychoman357 1 year ago
Very good tutorial
odiskamata 1 year ago
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?
deathkid64 1 year ago
How do I slow down the animation>??? D:
deathkid64 1 year ago
@deathkid64 Change the number for the timer
MrShadeslayer 1 year ago
@MrShadeslayer Thanks MAN! You just helped me finish my Senior Term Project xD
deathkid64 1 year ago
Ah i see you changed the "flip" date type to boolean, of course its not an integer. Why do you not use prefixes?
ZaCkOX900 1 year ago
this is good! tnx men!
killuabone 1 year ago
@killuabone No problem :)
MrShadeslayer 1 year ago
ya i love vb 2008 easy to use but vb 6 is old and not good
TheTeaBagTeam 1 year ago
@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
MrShadeslayer 1 year ago
Interesting.
TheBushybrows 1 year ago
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?
jinell14 1 year ago
cool bro now i can race pictures lol
rashad5010 1 year ago
@rashad5010 lol have fun then :P
MrShadeslayer 1 year ago
It will not work with 6,
and nice:)
youwasted5secs 1 year ago
That might be because 6 has a different coding style then 08. Thxs :), Remember to subscribe and rate (Y)
MrShadeslayer 1 year ago
If you are using VB6,upgrade to VB2008.
boolykbol 1 year ago
@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 1 year ago
ballader1 1 year ago
wat is the song and gud video 5*
razza97iscool97 2 years ago
The song is called Stronger by Kayne West. And thxs for the rating. plz subscribe.
MrShadeslayer 2 years ago
@MrShadeslayer thanx gud song and subscribed now:L
razza97iscool97 2 years ago
thxs alot. =)
MrShadeslayer 2 years ago
isn't it applicable to vb 6.o?
21krizchristensen 2 years ago
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.
MrShadeslayer 2 years ago
VB6 sucks and VB2008 RULES!!!!
boolykbol 1 year ago
@boolykbol lol yea VB 2008 does rock.
MrShadeslayer 1 year ago
@boolykbol
VB 2010 RULES
ivandonat 1 year ago
@ivandonat YEAH!
BeezDuL 1 year ago
awesome thanks
amg703 2 years ago
@amg703 lol np
MrShadeslayer 2 years ago
@amg703
MrShadeslayer 1 year ago
The next vid that i will make will show how make the naimation move using the arrow keys :)
MrShadeslayer 2 years ago