![]() |
My program exploded... I can has help?
1 Attachment(s)
I am trying to recreate a simple version of Pong. I am almost positive that I coded it correctly, though I apparently didn't because it's not working. I would be much appreciative if someone would take a look at my code and point me in the right direction. I'll put the code up, but since this is Flash, I'll also put the actual program file up as an attachment.
Thanks, Cmptr_Prgrmr2B Code:
player.onEnterFrame = function() { |
Well I would check your code at
Code:
if(ball._x < 0) {Then the ball doesn't really have any angle to its direction, so perhaps integrating some Math methods to give the ball a different direction based on where it hits the paddle. |
I fixed part of my code like you posted, and went looking for a way to bounce the ball ad different angles. In my original code, this
Code:
|
| All times are GMT +1. The time now is 10:59 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.