I just realised that the v2.7 zip file was invalid, I have now uploaded a new version which should work fine.
Apologies for this if you tried to download it.
I just realised that the v2.7 zip file was invalid, I have now uploaded a new version which should work fine.
Apologies for this if you tried to download it.
Level Director v2.7 Released (http://www.retrofitproductions.com/level-director/)
Whats New?
Please uninstall your current version first.
I just realised that the v2.7 zip file was invalid, I have now uploaded a new version which should work fine.
Apologies for this if you tried to download it.
Hi - I am trying to convert a basic game engine I wrote in Corona to be compatible with your level editor because I like the features and think it will make level design so much easier. But I am having trouble finding information on the some of the built in functions and names once I try to control level objects in my LUA source.
For example:
I made a dpad that has 360 degree control (in basic lua it was just a circle object with an event listener and a couple trig calculations to get a relative dx and dy based on where the touch event happened within the circle). To convert this into level director I made it a button object. I have it detecting touch events and converting this into motion of a player. My problem is that when the button is being held down and the event position on the button is changing that current event.x and event.y is not updating but staying at the original event.x and event.y from the first touch position. Therefore the players dx and dy does not change unless the button is released and touched again.
I am not looking for you to solve my problem - but figured I would give you an idea of where my question originated:
finally my question:
I see in the examples (such as Scroller2) that there are events programmed in for onPress and onRelease etc. is there an onHold (or equivalent) function? or do i use the drag event function? What would really be helpful is LUA documentation for the names and abilities of all of these seemingly built in functions for LD objects? Does this exist? or do I need to scour example projects and hope that one covers my problem?
I want to control my LD objects easily with my LUA code!
Hi,
I think I know what are you’re asking but the LD button object doesn’t really support a drag event.
The LD_HelperG2.lua file could be modified or maybe if you already have a library for a dpad you could still use it.
It is simple to add external objects to any layer in LD so this might be easier for you.
e.g.
myLayer = myLevel:getLayer(“GUI”).view
myLayer:insert(myDPad)
For further reference please review this : http://www.retrofitproductions.com/level-director/utility-library/
Let me know if you need any further help.
Hi - I am trying to convert a basic game engine I wrote in Corona to be compatible with your level editor because I like the features and think it will make level design so much easier. But I am having trouble finding information on the some of the built in functions and names once I try to control level objects in my LUA source.
For example:
I made a dpad that has 360 degree control (in basic lua it was just a circle object with an event listener and a couple trig calculations to get a relative dx and dy based on where the touch event happened within the circle). To convert this into level director I made it a button object. I have it detecting touch events and converting this into motion of a player. My problem is that when the button is being held down and the event position on the button is changing that current event.x and event.y is not updating but staying at the original event.x and event.y from the first touch position. Therefore the players dx and dy does not change unless the button is released and touched again.
I am not looking for you to solve my problem - but figured I would give you an idea of where my question originated:
finally my question:
I see in the examples (such as Scroller2) that there are events programmed in for onPress and onRelease etc. is there an onHold (or equivalent) function? or do i use the drag event function? What would really be helpful is LUA documentation for the names and abilities of all of these seemingly built in functions for LD objects? Does this exist? or do I need to scour example projects and hope that one covers my problem?
I want to control my LD objects easily with my LUA code!
Hi,
I think I know what are you’re asking but the LD button object doesn’t really support a drag event.
The LD_HelperG2.lua file could be modified or maybe if you already have a library for a dpad you could still use it.
It is simple to add external objects to any layer in LD so this might be easier for you.
e.g.
myLayer = myLevel:getLayer(“GUI”).view
myLayer:insert(myDPad)
For further reference please review this : http://www.retrofitproductions.com/level-director/utility-library/
Let me know if you need any further help.