Give the ball an instance variable loopindex
add the text object to a container with the ball
ball on created
- textobject set position to ball
- textonject set text to ball.loopindex
because they are in a container only that textobject will be affected.