I'm a noob
Moderator: Coders of Rage
I'm a noob
So, I'm making a pong clone and it is in blitz basic, I'm using text graphics
and I can't get the stinkin ball to bounce off the paddles after that I'm done, but I can't find the code on the internet. I've been lookin for an hour!
and I can't get the stinkin ball to bounce off the paddles after that I'm done, but I can't find the code on the internet. I've been lookin for an hour!
-
- Chaos Rift Cool Newbie
- Posts: 53
- Joined: Wed Apr 09, 2008 12:33 am
- Contact:
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
You only have to post the relevant sections, instead of the whole thing :P
Isn't it supposed to be more like
?
Unless that's what you wrote (and just didn't disable HTML in your post)
Code: Select all
If ballY <0>= 300
ballspeedY = -ballspeedY + Rand (-1,1)
ballspeedX = ballspeedX + Rand (-1,1)
EndIf
Code: Select all
If (ballY < 0 Or ballY >= 300)
Unless that's what you wrote (and just didn't disable HTML in your post)
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Hey, my apology for not helping sooner--I'll take a look at it tomorrow sometime. I've been without internet for the past 2 or so weeks, so when I've been on it's only been for brief periods of time and I really haven't had enough to debug that.
As for your later programs, I'd like to see what you come up with.
As for your later programs, I'd like to see what you come up with.
<qpHalcy0n> decided to paint the office, now i'm high and my hands hurt
- JS Lemming
- Game Developer
- Posts: 2383
- Joined: Fri May 21, 2004 4:09 pm
- Location: C:\CON\CON
http://youtube.com/watch?v=BndPvsUtbj4
Are you happy? It was intended for my friends to see so they didn't think I was slackin off...
Are you happy? It was intended for my friends to see so they didn't think I was slackin off...