so I am trying to modify something so that regardless of the device rotation it takes up the entire width and height of the screen
this is my code:
[lua]
.
. – code inside of a orientation runtime listener
.
if oneGroup then – oneGroup being the displayGroup
oneGroup:setReferencePoint(display.CenterReferencePoint)
oneGroup:rotate(-event.delta)
oneGroup.width = display.contentWidth
oneGroup.height = display.contentHeight
end
.
.
.
[/lua]
However when I do this, it rotate the thing I want rotated, but doesn’t actually fill up the screen. It appears that it only rotated it and didn’t actually effect the height and width property, as the top and bottom of the screen and left blank and parts of the image is off the screen on both sides
Any suggestion as to where I am going wrong?