Hey guys. I just made a Pong game, [url]http://www.truploader.com/view/300391[/url] and the paddle can go up or down off the screen. I made it is AS3. Do you have any ideas how I can fix it??
What about If (playerPaddle.y<0) { playerPaddle.y = 0 } If (playerPaddle.y > the height of the stage ) { playerPaddle.y = the height of the stage } It should work.
What about If (playerPaddle.y<0) { playerPaddle.y = 0 } If (playerPaddle.y > the height of the stage ) { playerPaddle.y = the height of the stage } It should work.
The height of the stage is 2, but I have the height as 2.0, does that make a difference?
In that case all the x and y have to become _x and _y, and I'm not sure that playerPaddle._x would work, but it's better asking beech about this things.