How to add a border for android

would the rightwall look like this: local rightWall = display.newRect( display.contentWidth - 1, 0, display.contentHeight * .5, display.contentHeight ) ? If not, what would it look like?

close, hard to type code on iphone but try this.

local rightWall = display.newRect((display.contentWidth - 10, (display.contentHeight * .5), 20, (display.contentHeight))

I seem to get a Runtime Error! should I change this: local rightWall = display.newRect((display.contentWidth - 10, (display.contentHeight * .5), 20, (display.contentHeight)) to this: local rightWall = display.newRect((display.contentWidth - 10), (display.contentHeight * .5), 20, (display.contentHeight))

Yep looks like I missed the closing ) on the first value, iphone has a funny way about saying what is right or wrong with a word etc.

the bottom parts of the screen still do not have walls, only the top parts! use rightWall.anchorX = 0 ?

you will need to play around with it as i don’t have access to your code or your config file to see what you have going on.

anchorX would do it but i think all you need to do is add a * .5 to your first x value

local rightWall = display.newRect(((display.contentWidth * .5) - 10), (display.contentHeight * .5), 20, (display.contentHeight)) 

Seems to work now! Would it work if I do this for the ceiling as well as the leftWall? thanks

local leftWall = display.newRect(((display.contentWidth * .5) - 10), (display.contentHeight * .5), 20, (display.contentHeight)) (Would this work for left border)

local ceiling= display.newRect(((display.contentWidth * .5) - 10), (display.contentHeight * .5), 20, (display.contentHeight)) (Would this work for top border)

Yes the same logic works for all (BUT)

you have to change the position of the left walls X and change the x/y/w/h of the ceiling 

so left wall would be something like.

local leftWall = display.newRect(10, (display.contentHeight * .5), 20, (display.contentHeight)) 

ceiling would be something like

local ceiling= display.newRect(-(display.contentWidth * .5),10, (display.contentWidth), 20) 

might need to play with it but i think you have the general idea

thanks borders seem to be working!