Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / General Breakout Problems

Author
Message
eek
20
Years of Service
User Offline
Joined: 26th Dec 2004
Location:
Posted: 27th Aug 2006 11:06
Hiya,

I've just got a few problems that I can't seem to get working properly in breakout. I've been using the pong tutorial by chris k as a basis, but I'm stuck. The current problems I can't get working are the collision with the left and right sides of the arena and the ball bouncing, which is basically most of the game... The ball still won't go past the paddle, I don't think I understand chris's version of the code that well... When the ball is within a certain range of the paddle, you are supposed to be able to move the paddle and thus move the ball, but the code is very flaky that I have. I'm not sure what all the problems are with that. Thanks for any help anyone can give me on any of my problems.

Here's the code:
eek
20
Years of Service
User Offline
Joined: 26th Dec 2004
Location:
Posted: 29th Aug 2006 03:35 Edited at: 29th Aug 2006 03:37
Well I fixed the left and right wall collision problem. I'm still stuck on the other problem though. I figured out I had one too many collision statements in the previous code, but now that I cut it down to two it still doesn't work. I'm not sure exactly what's wrong. Any help now?

New code:
eek
20
Years of Service
User Offline
Joined: 26th Dec 2004
Location:
Posted: 29th Aug 2006 04:24
Ok, I mainly have the two problems above fixed. If anyone is interested, here is the fixed code:



It was just a stupid problem with the statement. Hopefully I'll be able to catch those problems easier in the future.

Login to post a reply

Server time is: 2025-05-25 22:25:17
Your offset time is: 2025-05-25 22:25:17