local scene = game:getLink(VGameCurrentScene)
print ("--- start ---")
for v,t in pairs(scene.SceneScrollableArea) do
print (v,t)
end
print ("--- end ---")
21:31:24.814:--- start ---
21:31:24.814:y 0
21:31:24.814:x 0
21:31:24.814:height 0
21:31:24.814:width 0
21:31:24.814:--- end ---
game.CurrentScene.Sprite:getSize().x
game.CurrentScene.Sprite:getSize().y
local scene = game:getLink(VGameCurrentScene)
print(scene.SceneSprite:getSize().x)
game.CurrentScene.Sprite:getSize()
The size of the scene is determined by the sprite you use there. And the sprite field for a scene is a link to the used image (and some other informations).From an OO point of view, getting the size of the scene has to be a method of the scene!