Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Problem with application (getContentWidth/Height) — Gideros Forum

Problem with application (getContentWidth/Height)

BigWinstonBigWinston Member
edited July 2013 in General questions
Hi!

Has there been any change recently to the way getContentWidth and getContentHeight run? Code that used to work in the past, now doesn't work after I've returned to Gideros after a 3 month break (and with the latest version of Gideros).

I receive the error shown at the bottom of the post when I run the following code:

print("Content Width : ", application:getContentWidth())
print("Content Height: ", application:getContentHeight())


The Error:

project\game/game.lua:77: attempt to call method 'getContentWidth' (a nil value)
stack traceback:
puzzles\game/game.lua:77: in function 'init'
[string "property.lua"]:52: in function '__new'
[string "property.lua"]:59: in function 'new'
core/scenemanager.lua:281: in function 'changeScene'
main.lua:16: in main chunk

Comments

Sign In or Register to comment.