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
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;
}