Made a 1-4 player pong game in vb last year where you could set a computer player at 4 different skill levels. The Computer didn't follow the ball and each computer player would move differently. Will possibly post up a vid on my channel.
Sorry I'm German. I can not so good English but I try it ... I made a video about how to program a Ping Pong game. like these. You have to search on my channel for Ping Pong and you will find it. Thumb up pls ;-) and subsrcribe him and me :D
@aydoooo The computer is indeed programmed to follow the coordinates of the ball. However, the computer can only go at a certain speed. The ball goes faster and faster as the game progresses, and therein lies your chance to win, for as soon as the ball goes faster than the computer, you can hit it at such an angle that it goes past the computer's paddle.
@R0llingStones the ball does not travel faster according to the difficulty. It travels faster as the game progresses. the top speed of the cpu's paddle is what varies with the levels.
The simplest way to create an "AI" would be to just set the computers top equal to the ball's top. Make it a range so that the computer's paddle will always be in line with the ball. Good luck beating it though.
idt its vb 2008 if it is the put a tut! but if its not why be a mother fucking lier! when you can be a mom fucker! why not start with your own! but if it is vb i have to give you a lot of props! if it is vb! then damn! good job !
1st off, great job its a nice looking program, 2nd off, im working on this game myself and everything is good except......... im having trouble setting the walls solid so the ball bounces off, if u culd give me that portion of the code or help me out... thatd be great! :) thnx and good job again on this game.
As in, the top and the bottom that the ball bounces off of? if that's the case: say you use x for the x-coordinate of the ball and y for the y-coordinate. ...actually, I'll message you, because I don't want to surpass the youtube character limit 1 -.-
what's boring on that? i mean it's one of the games that revolutionized the gaming industry. alot of people still plays this one, and making it on VB is no joke, it'll take hours to code it man. i bet you're just a kid who plays new games well if you compare it to new games, then shut the fuck up
What's the idea behind the opponents A.I. Im making a pong game but I am stuck on the A.I for the opponent. I don't want the source code but just if you could tell me the basis of it.
If [vertical-coordinate of ball location] is higher than the [vertical-coordinate of paddle location], then move the paddle higher. And vice versa for downward movement. You'll probably want to tweak it a little so the paddle doesn't flicker, moving the paddle only when needed.
Sorry. I guess I was vague. The # of pixels it moves is based off a function of the difficulty, so basically it has a set speed. BUT sometimes, the processing causes the CPU paddle to move up, but then the IF..THEN statements causes the paddle to move down again, causing the paddle to flicker.
wow very nice. i am making somethin more simpler rite now and im trying to figure out how to play against pc. the way i did is = (me.picBall.top = me.picPaddle.top - 64), and then put the interval of the timer of the paddle more then the balls so its moving slower, but it doesnt work :(. can u tell me the way u did it against the pc?
I used pictureboxes for the ball and the paddle, and using the *.top properties, I measured the distance between the centers of each picturebox, divided it my 4.7, and stored the result as an integer to the slope of the ball. It took a lot of trial and error to get it right.
We're from the United States, but Tougufe is Vietnamese and I (Hazju) am Hispanic, and both of us are learning Japanese! Both of us have been rather unsatisfied with the United States recently, but hopefully that will change soon! (I'm a Democrat, and Tougufe is an Independent.) You're from Canada, right?
yup, and i've made 2 vb games, but there shit compared to yours. I also tryed to learn japanese, its because i love anime ect. I stoped now, i realy dont have to for stuff like that
I would like to make a tutorial and post it... but my camera's quality isn't good enough to make a video. I need some kind of software that makes a screen capture video, or something like that...Does anybody know where I can find something like that?
im like alfredo i use vb 6 (only just started though) but im trying to do 2008
could you help me with one thing...
in vb 6 i made a circle move by using circle and basically saying draw it in a colour then puase make it the colour of the form and then redraw it with x and y + 1
but how do you do it on 2008 because you cant use circle and im new to programming
Thanks for commenting. For 08, I created a panel (used for the playing area), and inside the panel I created 3 pictureboxes. I imported a picture into each box (you don't have to use code to do that). For the game engine, I created a timer. In the timer, I moved the pictureboxes by changing the *.left and *.top properties of the picturebox. So, it looks like: picturebox1.left -= x (where x is the amount that the ball moves) and picturebox1.top -= y. I hope that this helps. Thanks for commenting!
very nice done! is there any chance I can get the file so I can se how u made it? If not can u help me to understand how to get a thing to follow the mouse? like the pad in your game! I'm not so good at vb 2008 jet, I'm an old vb6 user!
Made a 1-4 player pong game in vb last year where you could set a computer player at 4 different skill levels. The Computer didn't follow the ball and each computer player would move differently. Will possibly post up a vid on my channel.
sprogsy10 2 months ago
You could make so the CPU only moves when the ball is on his side. Then, it doesn't look so weird
CubieNewbie 7 months ago
don ' t use a camera ...
use hypercam 1 , 2 , 3
antreasdrumer 10 months ago
This has been flagged as spam show
i have a source code for the pacman game in my channel pls check it out. =)
MrCybergasm 10 months ago
how to mae this game???samoray shokr
ahmed22715 1 year ago
Sorry I'm German. I can not so good English but I try it ... I made a video about how to program a Ping Pong game. like these. You have to search on my channel for Ping Pong and you will find it. Thumb up pls ;-) and subsrcribe him and me :D
LukaSoftware 1 year ago
5/5 awesome! if u made a tutorial you would get a million views! (use a screen recorder,you can make one in vb.)
moviewatcher824 1 year ago
where can i download visual basic? i have freeBASIC atm, and it can barely do a calculator program >.<
darkorbitfanatic 1 year ago
ever heard of a screen recorder? :D
math110c 1 year ago 3
How did you realise that the angle of the ball's direction changes?
PhilOByte 1 year ago
A week and a half? Something like this should take an expert programmer hours, to a few days for others.
ZaCkOX900 1 year ago
have you ever heard something from a screencam??!
Nazgul56561 1 year ago
well, the cpu is kinda stupid programmed.
you just make him follow the cords of the ball, so basically hes unbeatable.
aydoooo 1 year ago
@aydoooo The computer is indeed programmed to follow the coordinates of the ball. However, the computer can only go at a certain speed. The ball goes faster and faster as the game progresses, and therein lies your chance to win, for as soon as the ball goes faster than the computer, you can hit it at such an angle that it goes past the computer's paddle.
PachesatsutEnulaitsu 1 year ago
@PachesatsutEnulaitsu I'm sorry, but I don't see that in the video. The CPU is always at the same height.
aydoooo 1 year ago
@PachesatsutEnulaitsu
so.. your difficulty levels are missleading..
although in the easiest level the ball travles slower.. winning is impossible
but on the hardest difficulty although the ball travles faster winning is possible
R0llingStones 1 year ago
@R0llingStones the ball does not travel faster according to the difficulty. It travels faster as the game progresses. the top speed of the cpu's paddle is what varies with the levels.
PachesatsutEnulaitsu 1 year ago
@aydoooo Shut Up he worked so hard
Idealprogrammer 1 year ago
To remove flickering and lag, add this to a Form_Load event:
setstyle(ControlStyles.DoubleBuffer, True)
setstyle(ControlStyles.AllPaintingInWmPaint, True)
friendofKiwi 1 year ago
It looks really cool, @PachesatsutEnulaitsu
Retrotto 1 year ago
How did you avoid flickering? And how is it possible that you're game runs so smoothly?
Thanks in advance.
Pvsmuntje 1 year ago
you at least need to put a download link for this!!!
kenny12101 1 year ago
sweet u gota make a tut of this somehow!!
kenny12101 1 year ago
please make a tutorial
kyriacoshe 1 year ago
Is it made completely in a Forms Application or is it with a plugin like XNA?
ThePaRaDoXGamer 1 year ago
make an installer with ur ping pong game and upload it :D if u dont know how pm me :P
rockascy 1 year ago
Good!
Check my pong game to hehe
VISUALBASICVIDEOTUTS 1 year ago
'lo there! I'm having issues creating an AI for this. Care to post the source for this?
ArkCatox 1 year ago
@ArkCatox
The simplest way to create an "AI" would be to just set the computers top equal to the ball's top. Make it a range so that the computer's paddle will always be in line with the ball. Good luck beating it though.
lilroefer21 1 year ago
@lilroefer21 The top alignment idea is from my VB 6.0 standpoint. Not sure if it is still there in '08
lilroefer21 1 year ago
ö_Ö its done with game maker isn't it?
MrKisum 1 year ago
yup, that could easily be made in visual basic. all of u guys are retards if you dont believe him.
Grandboy3000 1 year ago
prove that is is vb!!
adampostjr 1 year ago
idt its vb 2008 if it is the put a tut! but if its not why be a mother fucking lier! when you can be a mom fucker! why not start with your own! but if it is vb i have to give you a lot of props! if it is vb! then damn! good job !
adampostjr 1 year ago
You can rest assured, it is indeed VB 2008.
PachesatsutEnulaitsu 1 year ago
slab
2121george 1 year ago
Not VB...
bfoster15no2 2 years ago
@bfoster15no2 true that
adampostjr 1 year ago
how to make?
IloveyouKristina 2 years ago
free-music-download . tk
lani941 2 years ago
WOWOWOW the computer has 6th SENSE LOL!code source?:Dnice
dragoneanu 2 years ago
Exactly what I was thinking - Only it doesnt use your feet :P
Weirdnes222222222222 2 years ago
This has been flagged as spam show
can some1 plz help me i wanta make a code like this --EXAMPLE-- Textbox1.text = " This Code = "True" "
HardCoreSmasher 2 years ago
holy shit the ball goes fast! lol
smiffyb2k7 2 years ago
@smiffyb2k7 haha he said balls
adampostjr 1 year ago
nice nice
when i started programming in school we only got about 3 days to make it tho xD
Still good job ;) 5/5
Insanity0107 2 years ago
OMG!
THATS AWESOME!
PLEASE MAKE A TUTORIAL!
(btw, to screen record, get unregistered hypercam 2)
Vennard98 2 years ago
camtasia 6 is ALOT better (:
TeamNiBiC 2 years ago
@TeamNiBiC yeahh boiee
adampostjr 1 year ago
change the annotations at the beginning to sow ITS OVER 9000 VIEWS!!!
Roboguy9000 2 years ago
lol wow!
PachesatsutEnulaitsu 2 years ago
done. instantly
PachesatsutEnulaitsu 2 years ago
@Roboguy9000 what are you talking about?
Retrotto 1 year ago
@Retrotto how the video has OVER 9000 views
Roboguy9000 1 year ago
which version of visual basic was this done?
monsterhunter445 2 years ago
dude this is sweet and it looks pretty hard to make as well, i know i couldnt do it, especially since you did the whole thing in VB
5/5
asasinator17 2 years ago
Thanks
PachesatsutEnulaitsu 2 years ago
nice game :) errm yh well its agood game "CAN U PLZ SHOW ME HOW TO MAKE!"
huttirarik 2 years ago
1st off, great job its a nice looking program, 2nd off, im working on this game myself and everything is good except......... im having trouble setting the walls solid so the ball bounces off, if u culd give me that portion of the code or help me out... thatd be great! :) thnx and good job again on this game.
suprdman126 2 years ago
As in, the top and the bottom that the ball bounces off of? if that's the case: say you use x for the x-coordinate of the ball and y for the y-coordinate. ...actually, I'll message you, because I don't want to surpass the youtube character limit 1 -.-
PachesatsutEnulaitsu 2 years ago
Cool!
4KNET 2 years ago
fake
rogueprogramwatcher 2 years ago
What the heck makes you say that?
PachesatsutEnulaitsu 2 years ago
Im jealeous
rogueprogramwatcher 2 years ago
So Boring!!
LOL!
spleken001 2 years ago
what's boring on that? i mean it's one of the games that revolutionized the gaming industry. alot of people still plays this one, and making it on VB is no joke, it'll take hours to code it man. i bet you're just a kid who plays new games well if you compare it to new games, then shut the fuck up
762459 2 years ago
BEST VISUALBASIC GAME I EVER SEEN :O
warrocksnl 2 years ago
this is awesome
cuteboymimmi 2 years ago
Thanks!
PachesatsutEnulaitsu 2 years ago
iam actually working on this game at school, the coding is pretty hard.
hulksmash05 2 years ago
aww pussy cat so cute
gianjoloceymarc 2 years ago
the cpu is cheating D:
dimadog1 2 years ago 10
no,the difficulty is expert
gianjoloceymarc 2 years ago
can you send me the project file? thanks
1Mihailo 2 years ago
This has been flagged as spam show
Please check my video about my older VB Games..(I have new better ones, and also I have a video about My PPT Macros Games...)...Please!
GGames2009 2 years ago
Damn, awesome recording (y) was it fraps? Im just kidding :P Awesome work :D
sweffe96 2 years ago
Not bed man , nice game
vardushik 2 years ago
Can you send me source code? please?
SMota14sm 2 years ago
could you send me the source code because u have download PLEASE
dudeofgods 2 years ago
this cpu player in unbeatable XD
googleaki 3 years ago 8
What's the idea behind the opponents A.I. Im making a pong game but I am stuck on the A.I for the opponent. I don't want the source code but just if you could tell me the basis of it.
evang14 3 years ago
If [vertical-coordinate of ball location] is higher than the [vertical-coordinate of paddle location], then move the paddle higher. And vice versa for downward movement. You'll probably want to tweak it a little so the paddle doesn't flicker, moving the paddle only when needed.
PachesatsutEnulaitsu 3 years ago
instead of "tweaking" it, use a timer, it makes whatever you're moving slide alot smoother.
Shad12Dash 2 years ago
Sorry. I guess I was vague. The # of pixels it moves is based off a function of the difficulty, so basically it has a set speed. BUT sometimes, the processing causes the CPU paddle to move up, but then the IF..THEN statements causes the paddle to move down again, causing the paddle to flicker.
PachesatsutEnulaitsu 2 years ago
And for difficulty change the number of pixels it moves at a time so the computer isn't unbeatable.
Shad12Dash 2 years ago
nice work XD
lalaggg 3 years ago
The best thing I ever made in VB was a label that bounced around on a form using timers and .top and .left properties.
Beef44092 3 years ago
how do you blend in sprite in visual basic?
within the backgroun?
wrath186 3 years ago
camstudio is a free screen capture app and it'll give you great quality
pspheaven 3 years ago
wow very nice. i am making somethin more simpler rite now and im trying to figure out how to play against pc. the way i did is = (me.picBall.top = me.picPaddle.top - 64), and then put the interval of the timer of the paddle more then the balls so its moving slower, but it doesnt work :(. can u tell me the way u did it against the pc?
slava41 3 years ago
can you send me a download link?
ASimpleProgrammer 3 years ago
How u make the ball change his angle when you hit it?
8Maik 3 years ago
I used pictureboxes for the ball and the paddle, and using the *.top properties, I measured the distance between the centers of each picturebox, divided it my 4.7, and stored the result as an integer to the slope of the ball. It took a lot of trial and error to get it right.
PachesatsutEnulaitsu 3 years ago
oh Ok... Thanks
8Maik 3 years ago
u download this from someone else nerd!
dudeofgods 3 years ago
um....no. We programmed this ourselves. If you want more proof, just ask for anything specific.
PachesatsutEnulaitsu 3 years ago
THIS IS SICK XD
satbir15 3 years ago
Eh...you mean that as a compliment right? (I hope)
If so, Thanks! (If not, I'm an idiot)
PachesatsutEnulaitsu 3 years ago
its a compliment lol, 10/5 star ratings XD
satbir15 3 years ago
Okay, thanks, lol! (We're kind of nerds)
PachesatsutEnulaitsu 3 years ago
ahahahh lol, what counrty for you from?
satbir15 3 years ago
We're from the United States, but Tougufe is Vietnamese and I (Hazju) am Hispanic, and both of us are learning Japanese! Both of us have been rather unsatisfied with the United States recently, but hopefully that will change soon! (I'm a Democrat, and Tougufe is an Independent.) You're from Canada, right?
PachesatsutEnulaitsu 3 years ago
yup, and i've made 2 vb games, but there shit compared to yours. I also tryed to learn japanese, its because i love anime ect. I stoped now, i realy dont have to for stuff like that
satbir15 3 years ago
Microsoft also released some sort of GameMaker. If you Google "Visual Studio" go to the first link of Microsoft itself and you will find it there.
MugenRac1ng 3 years ago
I would like to make a tutorial and post it... but my camera's quality isn't good enough to make a video. I need some kind of software that makes a screen capture video, or something like that...Does anybody know where I can find something like that?
PachesatsutEnulaitsu 3 years ago
Camstudio is free!
Camstudio + camstudios loseless codec is great! :D
the site for it is:
camstudioDOTcom
DOT = .
herospy0 3 years ago
nice one :D
im like alfredo i use vb 6 (only just started though) but im trying to do 2008
could you help me with one thing...
in vb 6 i made a circle move by using circle and basically saying draw it in a colour then puase make it the colour of the form and then redraw it with x and y + 1
but how do you do it on 2008 because you cant use circle and im new to programming
jpdatsme 3 years ago
Thanks for commenting. For 08, I created a panel (used for the playing area), and inside the panel I created 3 pictureboxes. I imported a picture into each box (you don't have to use code to do that). For the game engine, I created a timer. In the timer, I moved the pictureboxes by changing the *.left and *.top properties of the picturebox. So, it looks like: picturebox1.left -= x (where x is the amount that the ball moves) and picturebox1.top -= y. I hope that this helps. Thanks for commenting!
PachesatsutEnulaitsu 3 years ago
nice!!
10hellx10 3 years ago
dang...lol im still makign noob stuff like spammers and login stuff :(
pokerstud001 3 years ago
hi that my brother
nyletakbrekcabed 3 years ago
could you send me the source? I wanna know all codes, how to make it :D
fifarunnerr 3 years ago
hi im really sorry abut the poor image
PachesatsutEnulaitsu 3 years ago
cool i wish i could do that.
extreamtuber56 3 years ago 2
Thank you very much for posting a comment. To get the paddle to follow the mouse, I created a timer, then in the timer_tick sub I put:
PictureBox1.Top = MousePosition.Y - _ Me.Location.Y - 42
Picturebox1 is the paddle.
make sure the timer has a high frequency and that it is enabled. Thanks very much for posting!
PachesatsutEnulaitsu 3 years ago
very nice done! is there any chance I can get the file so I can se how u made it? If not can u help me to understand how to get a thing to follow the mouse? like the pad in your game! I'm not so good at vb 2008 jet, I'm an old vb6 user!
anyway send me a mesage! :)
5/5 stars!
Alfredo9000 3 years ago
wow thats awesome
ucan2flash 3 years ago
Yay! someone actually commented
PachesatsutEnulaitsu 3 years ago