I am very pleased to announce the release of Level Director V2.3.0.
This is a big release, please see some of the highlights below;
• New: The <%?> export decision control tags have been extended to greatly reduce the size of the exported files.
<%?OBJECT_POINT%> only export path/point data for path and bezier objects.
<%?OBJECT_STYLE%> only export style data e.g. strokeWidth for relevant objects.
<%?OBJECT_FOLLOWPATH%> only export follow path data for objects that have it configured.
<%?OBJECT_JOINT%> only export joint data for Joint objects.
<%?OBJECT_TEXT%> only export text related data for Text objects.
• Fix: ReferencePoint has been moved from the Physics attributes to the object and the export template updated accordingly.
• Fix: It is now possible to delete an asset group added from a TexturePacker file.
• New: You can now collapse spritesheet groups in the asset window.
• New: Non-spritesheet assets are included in a new ‘Assets’ group so it can be collapsed.
• New: The screen position and canvas size are now stored and reloaded.
• Fix: Now exports FixedRotation and IsSleeping correctly.
• New: LD now stores all image files as relative paths to the project location. For existing projects these will be updated so please take a backup and make sure the images are located within a valid relative path.
• New: When ‘Use physics at assest level’ is checked then the physics properties at object level are disabled.
• New: The canvas window will automatically scroll if objects are dragged to the edge of the screen. This can be turned off in options.
• New: The path object now shows as a dotted line when export mode is set to ‘Data Only’.
• Fix: Canvas windows now positions correctly after window size is changed.
• Fix: The default referencepoint for rectangles is now set to ‘Center’ rather than ‘Top left’.
• New: FollowPath properties now added to each object.
Path – Path to follow and is a dropdown list of current paths added to level.
Repeats – Number of times to repeat, -1 = forever.
Rebound – When true, object will rebound i.e. traverse in opposite direction.
XFlip – If rebound, then flip in the x direction.
YFlip – If rebound, then flip in the y direction.
Rotate - Rotate object according to current position/angle on path.
Delay – controls how fast the object should follow the path, bigger number = slower.
AutoStart – when set and using LD_Loader the object will automatically start following the path (need to call initLevel).
Direction – The start direction i.e. Forward or Backward.
• New: In tools->options you can now add user defined class names e.g. ‘Coin’ or ‘Enemy’ and then specify a class value to each object from a dropdown list.
• New: In LD_Loader some new helper functions have been added;
LD_Loader:getObject(objectName) – return the first object with the specified name
LD_Loader:getLayerObject(layerName,objectName) – return the object on the specified layer
LD_Loader:objectsWithClass(className) - return all objects of that class name.
LD_Loader:layerObjectsWithClass(layerName, className) – as above but on a given layer
LD_Loader:removeLayerObject(layerName,objectName) – remove a named object on a layer
LD_Loader:removeLayerObjectsWithClass(layerName,className) – remove all objects on a layer for specificed class.
LD_Loader:removeObjectsWithClass(className) – remove all objects for specified class name.
LD_Loader:addEventListenerToAllObjects(eventName, listener) – add specified event listener to all objects
LD_Loader:initLevel() – call this after load level to start objects that are to follow a path.
• New: DebugMode has been added as a property on the level and exported as token %LEVEL%.DebugMode.
• New: PositionIterations has been added as a property on the level and exported as token %LEVEL%.PositionIterations.
• New: VelocityIterations has been added as a property on the level and exported as token %LEVEL%.VelocityIterations.
• Fix: Physics – isSensor and isBullet is now exported correctly and LD_Helper has been updated accordingly.
• New: Beizer and Paths exported for display are now part of a display group.
• Fix: Export now works correctly when regional settings converts dot to comma.
• New: PottyBird endless runner type game example added to demonstrate many of the new features in Level Director (drag bird and tap to poop).
Remember all the examples are included in the free download at http://www.retrofitproductions.com/level-director