Aller au contenu

Construct 2 Release r149

  • absolu 

Pour l’armistice, Scirra lance la r149 ^^ dont voici les caractéristiques :

New this build: a new Tilemap plugin and a built-in tilemap editor complete with tilemap editing tools from within the layout view; and a long-overdue autosave option!

Tilemap support

Construct 2’s new Tilemap support is based around two parts: firstly, the Tilemap plugin; secondly, the new Tilemap bar in the editor displays the current tilemap image, and allows you to draw directly in to a Tilemap object.

r149-tilemaps

Tilemap editor in Construct 2

There are a couple of tools such as pencil/stamp mode, eraser, and rectangle. Note the rectangle tool can automatically nine-patch your tiles if you have a 3×3 selection, making it quick to draw certain kinds of boxes in the tilemap.

The Tilemap bar also allows you to import .TMX files from the third-party tilemap editor Tiled. Only a subset of features are supported (e.g. isometric or hex maps are not currently supported – just squares), but this provides a nice alternative way to use tilemaps in Construct 2. Tiled has some nifty features like automatically merging the edges of different terrain types as you draw, and we probably won’t reinvent the wheel supporting things like that in C2, so take advantage of the importer if you need it.

For handling collisions, any tile with register a collision, and only empty spaces with no tile will not register a collision. To design levels where only a few tiles collide, use tilemap objects on different layers. You could have for example a background decorative tilemap, and then a tilemap on top of that with just the tiles the player collides with, such as walls or platforms.
Autosave

Software is never perfect, and sometimes it crashes. This much-requested feature should help protect against that. It will automatically save a separate .autosave.capx file in the same folder as your .capx/project on a regular basis. When it autosaves it will not make another autobackup (there’s not much point – they are all written to the same directory, so there’s not much extra backup security), but it will also save to your three backup folders as well when autosaving. Then if Construct 2 or your system crashes and you forgot to press ‘Save’ for hours, the autosave file should have a reasonably recent version of your work.

We hope to enable autosave by default by the next stable build, but for now it is off by default. This is because it’s a surprisingly complicated feature to implement (unlike an ordinary save it must not modify any of the existing project files or change the saved state of the project). If there are bugs, it could result in lost work – possibly in subtle ways, such as writing a corrupt autosave file, which then is not hlepful in the event of a crash. It is helpful for it to be tested though, so we recommend making manual backups of any important projects then turning it on. Every now and then check if your .autosave.capx file opens correctly, and let us know if there are any problems.

Changelog

Feature

New Tilemap plugin with integrated tilemap editor and support for importing TMX maps

Feature

Autosave (currently off by default, enable in preferences)

Add
Ribbon ‘View’ tab: new ‘Translucent inactive layers’ option. Makes all layers apart from the active one at 33% opacity, so the active layer is more clearly visible.

Add
SpriteFont: set horizontal/vertical alignment actions

Add
Scroll To behavior: can now be enabled/disabled

Add
Project ‘Orientations’ property is now used to set orientations for Windows 8/8.1 apps
Change

Attempted workaround for crash on exit issue – let us know if this is fixed or still a problem

Change
Windows 8.1 export now generates a solution file (.sln) that opens with VS2013. Previously the .sln file would have still opened with VS2012 if it was installed, which does not support Windows 8.1 apps.

Change
Adjusted dimmer window (that darkens editor while dialogs are up) to take up more of the application title bar, avoiding cutting off the ribbon gradient half way with the Office 2010 themes

Change
Phonegap export: now no longer exports gap:platform tags in config.xml. This should enable the default of building for every platform Phonegap Build supports, which is more future-proof (and now includes Windows Phone 8).

Change
Browser object: ‘On back button’ should now fire with PhoneGap on Android and Windows Phone 8

Change
Windows 8 object: deprecated support for ‘On view state changed’, ‘Compare view state’ and ‘Try unsnap’, because support for them has been removed in Windows 8.1. Existing projects can continue to use these (despite the fact they don’t work on Windows 8.1), but they cannot be used in new projects. We recommend using the Browser object’s ‘On resized’ event and window size detection to re-implement any snapped behavior that you want (note that Windows 8.1 allows variable sized snapping).

Change
Audio: changed the workaround for playing music on iOS Safari and Chrome for Android. Previously these would play music with the Web Audio API, but for long music tracks that could result in 20sec+ delay while it decoded the entire music track in one go. Now it uses HTML5 audio again and can start playing quickly since it streams, but it has to queue up music playback to begin in the next touch event, since the browsers only support starting HTML5 audio playback on input events (despite the fact the Web Audio API can play back at any time!). This also enables playback of music only (but not sound effects) in the Android stock browser after a touch event. Also removed unintentional use of the workaround on Firefox for Android and Tizen, which don’t have the limitation.

Bug Fix
Collisions between objects on different layers may have been mis-aligned in some cases

Bug Fix
Worked around possible case of some objects going blank in WebGL mode in IE11 or Windows 8.1 apps due to an apparent bug in IE’s WebGL implementation.

Bug Fix
Possible crash exporting with PNG recompression disabled

Bug Fix
Touch object: ‘Is touching object’ did not always work correctly with containers

Bug Fix
Node-webkit: maximize/unmaximize actions did not always work

Bug Fix
Event sheet view: holding shift to select a range of events did not always select sub-events of the last event

Bug Fix
Windows 8.1 ‘About’, ‘Support’ and ‘Privacy policy’ settings charms did not work

Bug Fix
Audio: could still play if set silent mode while sounds still loading

Cette nouvelle version est ici : https://www.scirra.com/construct2/releases/r149

Bonne installation.