PDA

View Full Version : [AS3] Pong problems


codeblue
05-01-2010, 04:22 AM
ok so I'm having one problem and I have a question on how to do one thing.... So my problem is that the enemy paddle(the top one) fidgets, when it gets back to the location when the ai is running, and I was wondering how to go about making the location of the hit affect how it bounces off the paddle, because as this is now the ball will bounce exactly the same everytime... I also noticed that it was lagging a little bit so I discovered an else if to make it run better but I'm not sure if I went into overkill on them or not
thanks