Posted June 15, 2013
Greetings fellow Americans,
Or any other nation...since I am not american either...my programming skills are again unsurpassed...unsurpassed to such extent that I again need urgent assistance. Is here anyone with good knowledge of VB.net who would be able to assist me with my often screw ups? For 2 days of intense chatting lets say.
The problem I am dealing with right now is that I am making Pong game using only one picture box for everything and my collisions wont work.
Public Sub Collisions()
If (Me.position.X + Me.width >= _ball.position.X) = True And (Me.position.Y <= _ball.position.Y) = True And (_ball.position.Y <= Me.position.Y + Me.height) = True Then
MessageBox.Show("Bang")
End If
End Sub
This is my code snippet for the collisions, yet it only works when the paddle is on top left corner.
For anyone who would be able to assist me and help me make at least slightly functional game (mind you I am not saying "do the work for me, I am saying I will most likely annoy you with my frequent questions"). I will give you a 6 dollar game (sorry cant spare more right now).
Or any other nation...since I am not american either...my programming skills are again unsurpassed...unsurpassed to such extent that I again need urgent assistance. Is here anyone with good knowledge of VB.net who would be able to assist me with my often screw ups? For 2 days of intense chatting lets say.
The problem I am dealing with right now is that I am making Pong game using only one picture box for everything and my collisions wont work.
Public Sub Collisions()
If (Me.position.X + Me.width >= _ball.position.X) = True And (Me.position.Y <= _ball.position.Y) = True And (_ball.position.Y <= Me.position.Y + Me.height) = True Then
MessageBox.Show("Bang")
End If
End Sub
This is my code snippet for the collisions, yet it only works when the paddle is on top left corner.
For anyone who would be able to assist me and help me make at least slightly functional game (mind you I am not saying "do the work for me, I am saying I will most likely annoy you with my frequent questions"). I will give you a 6 dollar game (sorry cant spare more right now).