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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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