Hi all, at the top mof my main menu screen I would like to have two text objects that display alternately.
For example, first it would display the “all time high score” for a few seconds, then fade that out and fade in “todays high score”, then repeat etc.
The trouble is I just can’t figure out an elegant way of doing this.
Any helpers please? [import]uid: 7841 topic_id: 23732 reply_id: 323732[/import]
What i would do is when the first transiton is complete ( fade out) change the text to the next wanted text.
Maybe have a variable that gets toggled ie
local Texttoshow = 1
--In your transition callback (onComplete handler) when the
--Text's alpha gets set to 0, do something like this
Texttoshow = 1 - texttoshow
if Texttoshow == 1 then
Text.text = "hi"
else
Text.text = "yo"
end
Hopefully that is something to get you started [import]uid: 84637 topic_id: 23732 reply_id: 95453[/import]