Et hop, une nouvelle version beta de Construct 2, nous voilà à la r160 !
Construct 2 Release r160
This is a Beta release. Beta releases have the cutting edge features but may have bugs in them. Download the latest Stable release instead here.
New this build: collision cell optimisation for Tilemaps. We had previously added a collision cells optimisation, but it did not apply to Tilemaps – they still counted as one big object covering the whole layout, and therefore were in every collision cell, and would always check every collision rectangle when testing collisions. Tilemaps were still optimised to avoid having to collision check every tile, but with large games using tilemaps this would still gradually get slower with bigger games as it had to do more and more collision checks. Now the two have been combined: internally the Tilemap object now also breaks up the tiles in to collision cells and only collision checks with the nearby cells. This should vastly reduce the number of collision checks done in large tilemap games and improve performance, especially on mobile devices dealing with large levels.
This change did involve a fairly deep overhaul of the Tilemap object, so please watch out for any regressions or new bugs. If you find any issues please post them to the Bugs forum following all the guidelines – and as ever, try to reproduce the problem in a new project.
The Turret and LOS behaviors can now also optionally turn off the collision cells optimisation. In some specific cases, over very long ranges/distances (e.g. 10000 pixels) it could actually reduce performance since it would have to check so many collision cells, which is extra work it didn’t have to do before. It’s strongly recommended to leave it on since in most cases it’s likely to be a lot faster, but if you are having performance problems with large layouts it might be worth experimenting with.
Add | Turret and LOS behaviors: new ‘Use collision cells’ property to turn off use of the collision cells optimisation for these behaviors. This is not generally recommended, but in some cases where these behaviors are used to cover very large distances, it could be faster to disable collision cells.
Add | WebGL shaders: can now use additional parameters (float layerAngle; vec2 viewOrigin) to get the current layer rotation and scroll position
Bug Fix | Links are now clickable in the ‘Install addon’ dialog
Bug Fix | Testing collisions with particles was not working (regression with collision cells)
Bug Fix | Sprite Font: could display blurry or with slight glitches in some circumstances
Performance | Tilemap: now also uses the collision cells optimisation