Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
[[Solved]] Scroll-able text box — Gideros Forum

[[Solved]] Scroll-able text box

Unknown Member
edited March 2016 in General questions
I've been designing and building a text adventure game and I would like to create a box that can hold text and depending on the users screen size it will wrap the text in that box. It'll allow the user to scroll down making them able to read the text. I've researched for two days now trying different things and I thought it would be best to ask for a little help since I can't find an answer to this. I have created a box though.

I am new to Gideros and I know the basic's of Lua.
local G = {}
local function run()
	--Screen boxes
	informationbox = Shape.new()
	informationbox:setFillStyle(Shape.SOLID,0xa6a6a6, 0.5)
	informationbox:beginPath()
	informationbox:moveTo(0,0)
	informationbox:lineTo((application:getDeviceHeight()/4.7),0)
	informationbox:lineTo((application:getDeviceHeight()/4.7),(application:getDeviceWidth()/3.4))
	informationbox:lineTo(0,(application:getDeviceWidth()/3.4))
	informationbox:endPath()
	informationbox:setPosition(25,25)
	stage:addChild(informationbox)
	--Textbox
               --Code here for scroll able text box
end
G.run = run
return G

Comments

Sign In or Register to comment.