This is how I do in my game in order to repeat the background image vertically:
local text = Texture.new("images/roadmap.png", false, {wrap = Texture.REPEAT}) local regi = TextureRegion.new(text, 0, 0, text:getWidth(), application:getDeviceHeight())
local rmap = Bitmap.new(regi) self:addChild(rmap)
I think that by replacing the "text:getWidth()" with "application:getDeviceWidth()" you will be able to produce the effect you want. For larger resolutions apply the appropriate width/height.
Comments
local text = Texture.new("images/roadmap.png", false, {wrap = Texture.REPEAT})
local regi = TextureRegion.new(text, 0, 0, text:getWidth(), application:getDeviceHeight())
local rmap = Bitmap.new(regi)
self:addChild(rmap)
I think that by replacing the "text:getWidth()" with "application:getDeviceWidth()" you will be able to produce the effect you want. For larger resolutions apply the appropriate width/height.