Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
index '__userdata' cannot be found — Gideros Forum

index '__userdata' cannot be found

edited August 2013 in General questions
My code is this:

local system = {};

local logoBmp;
local logoTexture;
function system.Start()
logoTexture = Texture.new("engine/images/logo.png", true);
logoBmp = Bitmap.new(logoTexture);
stage:addChild(logoBmp);
logoBmp:setAnchorPoint(0.5, 0.5);
print(Application);
print(Application:getScreenDensity());
print(Application:getLogicalHeight());
logoBmp:setPosition(Application:getContentWidth()/2, Application:getContentHeight()/2);
end

return system;


It fails at any line that has "Application:anyfunctiongoeshere()"

Why is that?
I make games for children: http://www.kidoteca.com

Comments

Sign In or Register to comment.