# Pingpong game

**URL:** <https://forum.kirupa.com/t/pingpong-game/296274>\
**Category:** Uncategorized\
**Created:** [September 12, 2009, 3:58am UTC](https://forum.kirupa.com/t/pingpong-game/296274 "2009-09-12T03:58:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![0xheartx0](https://avatars.discourse-cdn.com/v4/letter/0/45deac/32.png) [@0xheartx0](https://forum.kirupa.com/u/0xheartx0)\
**Post date:** [September 12, 2009, 3:58am UTC](https://forum.kirupa.com/t/pingpong-game/296274/1 "2009-09-12T03:58:48Z")

</div>

trying to learn from Ben’s game and already can’t move ball play  
to new position on stage- it always remains in exact same place no matter how the variables change, I can’t see where in the guts of that you would do it and if it is  
impossible because paddles and ball must start at 0x 0 y?

Here is the swf [http://sites.google.com/site/0xheartx0/one](http://sites.google.com/site/0xheartx0/one)

and this is the code for the button:

on (release)  
{  
\_root.\_root.ball.xspeed = 0;  
\_root.\_root.ball.ballspeed = 1.100000E+00;  
\_root.\_root.ball.yspeed = -2.100000E+00;  
\_root.\_root.ball.\_xscale = 99;  
\_root.\_root.ball.\_yscale = 99;  
\_root.\_root.ball.zspeed = -3;  
\_root.\_root.ball.realx = 300;  
\_root.\_root.ball.realy = 3;  
\_root.\_root.ball.xchill = 5;  
\_root.\_root.ball.ychill = 20;  
startDrag (\_root.\_root.paddle1, true);  
Mouse.hide();  
tellTarget(\_root)  
{  
gotoAndPlay(2);  
} // End of TellTarget  
\_root.\_root.paddle2.\_x = 300;  
\_root.\_root.paddle2.\_y = 60;  
\_root.ball.\_visible = true;  
\_root.paddle1.\_visible = true;  
\_root.shadow.\_visible = true;  
\_root.paddle2.\_visible = true;  
\_root.backbox.\_visible = true;  
\_root.paddle2.\_xscale = 30;  
\_root.paddle2.\_yscale = 30;  
\_root.ball.ydir = 1;  
setProperty("", \_visible, false);  
\_root.bluescoreclip.bluescore = \_root.ball.score1;  
\_root.redscoreclip.redscore = \_root.ball.score2;  
}
