Set Variable: "x1" = GetProperty ("/ball1",_x )
Set Variable: "y1" = GetProperty ("/ball1",_y )
If (x1 >= 340)
Set Variable: "move_x1" = -(move_x1)
Else If (x1<=10)
Set Variable: "move_x1" = -(move_x1)
End If
If (y1 >= 190)
Set Variable: "move_y1" = -(move_y1)
Else If (y1<=10)
Set Variable: "move_y1" = -(move_y1)
End If
Set Variable: "x2" = GetProperty ("/ball2",_x )
Set Variable: "y2" = GetProperty ("/ball2",_y )
If (x2 >= 340)
Set Variable: "move_x2" = -(move_x2)
Else If (x2<=10)
Set Variable: "move_x2" = -(move_x2)
End If
If (y2 >= 190)
Set Variable: "move_y2" = -(move_y2)
Else If (y2<=10)
Set Variable: "move_y2" = -(move_y2)
End If
Set Property ("/ball1", X Position) = x1-move_x1
Set Property ("/ball1", Y Position) = y1-move_y1
Set Property ("/ball2", X Position) = x2-move_x2
Set Property ("/ball2", Y Position) = y2-move_y2
Go to and Play (2)