Why does my Lua Code not update on Composer GUI changes?

I love this Composer GUI. Ive tried to follow multiple tutorials, and Ive even gotten pretty good at setting up my own screen layouts…

BUT!!! it does me absolutly NO good… the LUA code does not change ever on my code files…

unless i am really missing something here.

If im adding a box to the screen with physics turned on. then when i go to my lua code i would assume the COMPOSER GUI program would have added the code for the Object, setup the Physics eng for the Object and even set the code for its location. but my LUA code NEVER updates.

Has anyone had this issue? am i missing something silly on my end?

thanks

Chuck

Hey Chuck,

As it is documented over here ( http://docs.coronalabs.com/daily/composer/tutorial.html ), right now the scene file you save holds all the object information, so Composer does not generate lua code based on your changes. You have to access the objects at lua level using the composer API.

So if you create an object named Box1 in the GUI, in your LUA file you have to access the object using:

local box = self:getObjectByTag( "Box1" )

If you have any other questions, don’t hesitate to ask.

Thanks,

alex

Hey Chuck,

As it is documented over here ( http://docs.coronalabs.com/daily/composer/tutorial.html ), right now the scene file you save holds all the object information, so Composer does not generate lua code based on your changes. You have to access the objects at lua level using the composer API.

So if you create an object named Box1 in the GUI, in your LUA file you have to access the object using:

local box = self:getObjectByTag( "Box1" )

If you have any other questions, don’t hesitate to ask.

Thanks,

alex