It looks like you're new here. If you want to get involved, click one of these buttons!
local yy local str="some random text e random text e random text e random text e random text e random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e random text e random text e random texte random text e" local text6 = TextWrap.new(str, 400, "left") text6:setLineSpacing(5) text6:setPosition(10,50) text6:setTextColor(0x000000) text6:setFont(font) text6:addEventListener(Event.MOUSE_MOVE,function(event) text6:setPosition(50,event.y-yy) end) text6:addEventListener(Event.MOUSE_DOWN,function(event) yy=event.y end) |
Comments
Likes: talis
Dislikes: harytri
http://www.giderosmobile.com/forum/discussion/comment/8157#Comment_8157
Likes: talis
@zvardin thanks for the comment you are right I added y coordinate plus boundaries and worked like a charm.
But @atilim's version is far way better than my implementation. Anyway I am learning;)
Thanks for showing @ar2rsawseen.