Is there any way to "animate" text?

What I’m trying to do might not seem complicated but I’m not sure where to begin even.
I’m trying to display the score from a player action in a more exciting way than what I’m doing now, turning the alpha on the text on and off, which basically just makes the text pop up and then away after 4 seconds. Is there a way to make the score “count”, like a jackpot slot machine? Or any other way, I’m just looking for something else besides what I got now, a bit of desperation you might say.
I’m no programmer wiz kid either… I’m very new(hence the question in this forum category :wink: ).

Thanks [import]uid: 21652 topic_id: 16788 reply_id: 316788[/import]

something like this?
[lua]local txt = display.newText("", 150,300,nil,30)
local count = 0
transition.to(txt, {time = 1000, x = math.random( 100, 300), y = math.random(100,300)})

local function animate()
count = count + 1
txt.text = count
if count > 300 then
Runtime:removeEventListener(“enterFrame”, animate)
end
end

Runtime:addEventListener(“enterFrame”, animate)[/lua] [import]uid: 16142 topic_id: 16788 reply_id: 62839[/import]

Hm, good one but I was thinking… could one make the text grow? Like it’s popping out kinda? [import]uid: 21652 topic_id: 16788 reply_id: 62859[/import]

i did few thing with text and it got funny
try to play with functions, see what its got for you
[lua]local txt = display.newText("", 150,300,nil,30)
local count = 0
transition.to(txt, {time = 1000, x = math.random( 100, 300), y = math.random(100,300), xScale = 3,yScale = 3, alpha = 0.5, onComplete = function() txt.alpha = 1, transition.to(txt, {time = 3000, y = txt.y + 100}) end})

local function animate()
count = count + 1
txt.text = count
if count > 300 then
Runtime:removeEventListener(“enterFrame”, animate)
txt.text = " wohohoho "
end
end[/lua] [import]uid: 16142 topic_id: 16788 reply_id: 62862[/import]

www.j-strahan.com
download graffitiPS Free [import]uid: 7911 topic_id: 16788 reply_id: 62863[/import]

That looks great! I’ll just tweak it some for what I want. Thanks alot for helping me out this late night. :slight_smile:

jstrahan@ Oh cool, I’ll have a look! [import]uid: 21652 topic_id: 16788 reply_id: 62866[/import]