Aller au contenu

Construct 2 Release r151

Oyé oyé, amis constructor,

Scirra ne nous laisse même plus le temps de mettre à jour nos articles, ils sont trop prolifiques ^^

Pas eu le temps de mettre la r150, qu’il y a déjà la r151 dont voici les caractéristiques, mais attention, on est pas à l’abri d’une r152 stable (-; :

Wednesday, November 20, 2013

New this build: per-tile collision polygons and rotated and flipped tiles for tilemaps! There’s also some tweaks to improve the tilemap editing experience, and a new feature to save and load state for individual instances, allowing you to use the savegame system on a smaller scale.
Rotating and flipping tiles

To rotate or flip tiles, use the Z (rotate), X (flip horizontal) or Y (flip vertical) keyboard shortcuts, or the new buttons on the tilemap bar’s toolbar. These are the same shortcuts as Tiled uses, and the TMX import/export now also supports rotation and flipping compatible with Tiled. On top of that there are new actions to be able to rotate and flip tiles at runtime as well.
Tile collision polygons

The collision polygons for tiles are pretty simple to set up: double click a tile in the tilemap bar, or select a tile and click the new collision polygon button on the toolbar. A stripped-down version of the image editor opens up allowing you to set a collision polygon for just that tile. Once a collision polygon has been set, hovering the mouse over the tile in the tilemap bar outlines the collision polygon in red as a quick preview of what you’ve set.

While simple to set up, tile collision polygons involved updating lots of the collision checking code. We’re also due a stable update, and if all goes well with r151 then we can make r152 a new stable release. (We’ve not necessarily finished adding tile features – we may continue to improve it in future as well, but we still want to update the stable releases with the latest fixes and new features.) So please be wary of any issues and report them to the Bugs forum following all the guidelines if you find anything!

Changelog

Add
Tilemap: support for per-tile collision polygons

Add
Tilemap: support for rotated and flipped tiles

Add
Z order bar: now clicking tilemap instances sets the tilemap bar to edit that instance, and tilemaps can be edited even when they overlap other tilemaps without accidentally selecting the other instance. This should provide a more convenient way to edit multi-layered tilemaps.

Add
New examples: Microphone input, Vibrate

Add
A new ‘Office 2010 Silver’ color theme now ships with Construct 2, available in the Colors tab of Preferences

Add
New common expression ‘AsJSON’ and common action ‘Set from JSON’. These allow you to take advantage of the savegame system to save and load individual instance states without having to save or load the entire game, as well as other useful things like setting one object’s state to another’s.

Add
Keyboard shortcuts: press 1-4 to switch tilemap editing tool

Add
Browser object: ‘Invoke download of string’ action. Basically the same as ‘Invoke download’ but automatically creates the data URI to download with the string data. Useful for making it simpler to download JSON strings as files.

Change
Exported HTML files no longer specify ‘target-densitydpi=device-dpi’ in the meta viewport tag, since it is deprecated. Instead the ‘width=device-width’ directive is used.

Change
After further experimentation with the half framerate mode, it does not seem feasible to implement in a useful way in the context of a browser (it just makes choppy framerates worse, not better). We know there was demand for the feature but it does not seem possible to implement well in a browser-based environment, so the feature has been removed.

Change
Pathfinding behavior: default cell border is now -1 so it works like you would expect it to in grid/tile-based games

Bug Fix
Worked around broken music playback in the latest version of Firefox (due to a Web Audio API bug). Note this means audio effects cannot be applied to music in Firefox for the time being, but hopefully we’ll be able to remove the workaround soon when Mozilla fix the bug.

Bug Fix
Tilemap bar: can now still edit tilemaps when the bar is in auto-hide mode

Bug Fix
Tilemap: hang using negative spacing values

Bug Fix
False positive check failure using certain combinations of shaders

Bug Fix
IE11 could still register clicks as touches even when ‘Use mouse input’ was disabled

Bug Fix
Pathfinding behavior: ‘set diagonals enabled’ on start of layout could cause Javascript error

Vous pouvez télécharger cette nouvelle mouture ici : https://www.scirra.com/construct2/releases/r151

Bon r151 (-;