lua - Scaling in gideros -


local scaling = application.center application:setscalemode(scaling) 

i tried using above code in gideros gives error 'bad argument #1 'setscalemode' (string expected, got nil) @ setscalemode, how can fix ?actually, did not recognise application.center , though according apress lua game development, should.

it seems constants not set (probably bug), can still use values here: http://docs.giderosmobile.com/reference/gideros/application/setscalemode#application:setscalemode

as application:setscalemode("center")

but can set value in gideros studio project properties


Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -