You can create a tall block of text (for a credits screen) or a long block of text (for a stock ticker) then position them at the bottom or right side of the screen, respectively, and then use transition.to to make them move up or to the left.
Using the paragraph feature of the Crawl Space Library, here’s a scrolling credit-type thing that scrolls up and then fades away as it finishes.
[lua]local crawlspaceLib = require(“crawlspaceLib”)
display.setStatusBar(display.HiddenStatusBar)
local format = {}
format.font = flyer
format.size = 36
format.lineHeight = 2
format.align = “center”
local myParagraph = display.newParagraph( “Welcome to the Crawl Space Library, where all of your Corona SDK coding dreams will come true, we guarantee it!”, 15, format)
myParagraph:center(“x”)
myParagraph.y = 400
myParagraph:fadeIn()
transition.to ( myParagraph, { time = 12000, y = -300 } )
timer.performWithDelay ( 10000, function() myParagraph:fadeOut(2000) end )[/lua]
Jay
[import]uid: 9440 topic_id: 11572 reply_id: 42047[/import]