I’m piggy backing off of the FrameAnimation2 tutorial code
function collection:enterFrame( event )
for \_,ball in ipairs( collection ) do
local dx = ( ball.xspeed \* ball.xdir );
local dy = ( ball.yspeed \* ball.ydir );
local xNew, yNew = ball.x + dx, ball.y + dy
local radius = ball.radius
if ( xNew \> screenRight - radius or xNew \< screenLeft + radius ) then
ball.xdir = -ball.xdir
end
if ( yNew \> screenBottom - radius or yNew \< screenTop + radius ) then
ball.ydir = -ball.ydir
end
for \_,tempball in ipairs( collection ) do
local ballx = ball.xNew
local ballt = tempball.x
textObject2.text = (ballx)
textObject3.text = (ballt)
end
ball:translate( dx, dy )
end
end
for some reason i’m not getting anything displayed for
textObject3.text = (ballt)
what am i messing up here? [import]uid: 131583 topic_id: 23228 reply_id: 323228[/import]