When Text is too long, it cannot be show complete.
this is my Code:
SCREEN_W = display.contentWidth -- 屏幕宽度
SCREEN_H = display.contentHeight -- 屏幕高度
HALF_W = SCREEN_W / 2 -- 屏幕一半宽度
HALF_H = SCREEN_H / 2 -- 屏幕一半高度
display.setStatusBar( display.HiddenStatusBar)
local function main()
local str = "solar2D is a cross-platform framework which is ideal for rapidly creating apps and games for mobile devices, TV, desktop systems and HTML5. That means you can create your project once and publish it to multiple devices, including Apple iPhone and iPad, Android phones and tablets, Amazon Fire, Mac Desktop"
local textWarning = display.newText(str, SCREEN_W, HALF_H, native.systemFont, 25)
textWarning.anchorX = 0
local function textMove()
textWarning.x = textWarning.x - 5
if textWarning.x < -textWarning.width then
textWarning.x = SCREEN_W
end
end
Runtime:addEventListener("enterFrame", textMove)
end
main()
the text after ‘including Apple’ can not be show.