Okay... I'm making a 1s1s pong game. The way it works is that it switches to the ball costume, moves, stores the ball's coordinates and direction with variables, stamps, switches to the paddle costume, moves (if the arrow keys are held down), stores the paddle's coordinates with variables, stamps, and basically keeps going like that. I'm having trouble making the ball collide with the paddle though :l
Here's the script I have;
(It just about fitted )
I just can't understand why it won't work. The ball just goes straight through the paddle
Also, the "point towards x: [ ] y: [ ]" block is a custom block. I won't have that block in the final version, I'll use a workaround, but I'm too lazy to change it right now ^^ I know that that's not the problem, either, before you assume it's something to do with that.
A little help?
(BTW, I've also uploaded the project here, although unless you also have the custom block installed, it'll show as obsolete. [And yes I know custom blocks don't work online, I've only uploaded it so you can download it if you want])
Last edited by RedRocker227 (2012-03-19 15:03:40)
Offline
It appears to look like you clear the stage before the ball has the chance to detect collision, causing it to not realize there is a paddle there and the ball must bounce.
Offline
rdococ wrote:
It appears to look like you clear the stage before the ball has the chance to detect collision, causing it to not realize there is a paddle there and the ball must bounce.
Oh my gosh YES
Sorry, I'm just a little excited, because I've been trying to fix it for ages Thanks so much ^^
(I'm kinda embarassed I didn't realise that though...)
Offline
Yay, I've just tested it and it works ^^
I'll make sure I give you credit
Offline