Les versions Beta ne sont pas autant testées que les versions Stables

Les versions Beta ne sont pas autant testées que les versions Stables

Tiled background tile randomization; increase free edition scripting limits; new script APIs & more

06 December, 2022 ()

Envoyez-moi un courriel lors de nouvelles parutions

Don't miss out on the latest and greatest new features in Construct 3

Créer un compte

Notes

This release introduces a useful new feature for Tiled Background! Tile randomization is a new option you can enable that will randomly offset and rotate each tile, while blending the edges to keep a seamless appearance. With the right art style this is a great way to break up repetitive tiling. This option is built-in to the Tiled Background object, and a similar result can be achieved for other kinds of content with the new 'Randomize tiling' effect.

We're also pleased to increase the free edition scripting limits! Previously you could only go up to 75 lines of code (50 as a guest) with the free edition, with further limits on the number of script files and scripts in event sheets. We're now increasing this to 500 lines of code in the project (250 as a guest) with no other limits on number of script files or scripts in event sheets. Construct now has fantastic support for coding which is highly competitive with other tools, and we're excited to allow more people to try out the impressive features and performance of JavaScript coding in Construct with the increased free edition limits.

Other updates include a wide range of new script APIs to set or get pairs of values at once for convenience. For example as well as setting and getting the X and Y positions of instances individually, you can now also use setPosition() and getPosition() to set and get both at the same time. There are also some new options for timelines, tweens and the Animations Editor. The Properties Bar can now autocomplete string instance variable values in a similar way as when typing expressions. And as ever there are some bug fixes.

Last but not least, developers interested in writing custom effects can now write WebGL 2 variants of their shaders, as well as making use of some new WebGL 1 extensions. This allows taking advantage of more advanced shader features where supported. We'll be updating the effect SDK and publishing some preliminary documentation shortly to help developers get started with that.

Vous aimez cette parution ?

Faites-le nous savoir avec un pouce haut !

41
Exécuter r321

Nouvelles fonctionnalités

21 favoris
Tiled Background: tile randomization option to break up repetitive appearance

Nouveaux ajouts

8 favoris
Timelines: option to change Sprite animations via 'Initial animation' property
8 favoris
Tween behaviour: add 'Repeat count' option
8 favoris
Animations editor: option to resize all animations in an object type
15 favoris
New 'Randomize tiling' effect
4 favoris
Project statistics dialog: add total lines of JavaScript code
4 favoris
Account dialog: add allowed lines of JavaScript code when using free edition
14 favoris
Properties Bar: suggest string instance variable property values (similar to expression autocomplete)

Changements

11 favoris
Increase free edition scripting limits to 250 total lines of code in project for guests, or 500 if logged in, with no other restrictions
10 favoris
Layout view: don't show polygons of Sprite instances with disabled collisions

Corrections de bug

5 favoris
Event sheet view: could incorrectly leave behind references to deleted objects if used with a call function expression
5 favoris
Layout View: use project near/far distance, and set minimum/maximum zoom levels accordingly
4 favoris
Expressions dictionary: did not always resize correctly on first show
2 favoris
Tweens: minor error produced by some easing functions (regression r310)
3 favoris
Timelines: runtime crash using 'keyframe reached' conditions (regression r319)
5 favoris
Hierarchies: possible crash when saving a hierarchy that was generated at runtime
4 favoris
Tilemap brush editor: crash setting tiles 45 and 47 of a 47 tile auto tiling brush (regression r320)

Amélioration des performances

16 favoris
Somewhat improve performance of autocomplete in very large projects

Mises à jour du SDK

13 favoris
Add support for WebGL 2 shader variants for effects
9 favoris
Enable WebGL 1 extensions OES_standard_derivatives and EXT_shader_texture_lod (where available)
6 favoris
Add editor setting to limit editor/preview to WebGL 1, to help test shader variants
6 favoris
Add effect category "tiling"

Scripting updates

5 favoris
Add ILOSBehaviorRay methods getHitPosition(), getNormal(), getReflection()
5 favoris
Add setVector(), getVector() methods for 8 Direction, Car & Platform interfaces
5 favoris
Add IPathfindingBehaviorInstance.nodes() iterator
5 favoris
Add IAnimationFrame.getOrigin(), IImageInfo.getSize()
4 favoris
Add ILayer.getScrollPosition(), ILayout.getScrollPosition()
4 favoris
Add ILayout methods setSize(), getSize()
4 favoris
Add IWorldInstance methods setPosition(), getPosition(), setSize(), getSize()
4 favoris
Add IRuntime.getViewportSize()
5 favoris
Add getImageSize() for Sprite & Tiled Background interfaces
6 favoris
Add getTextSize() for Text & Sprite Font interfaces
4 favoris
Add ITiledBackgroundInstance methods setImageOffset(), getImageOffset(), setImageScale(), getImageScale()
4 favoris
Add ITilemapInstance methods getMapSize(), getMapDisplaySize(), getTileSize()
4 favoris
Add IDrawingCanvasInstance method getSurfaceDeviceSize()
5 favoris
Add "repeatCount" to the options available when starting a tween

Partager Construct 3 la parution r321 maintenant

  • 17 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • Thank you so much for the webgl effects options, this is very much appreciated. dfDy and dfDx can be so useful and performant for certain shaders! With these features, a useful new addition for effect uniforms would be arrays. For example for sending in a lot of light positions or a matrix.

  • good but, I was very disappointed, I thought the number of events had increased.

  • A feature of Construct is the event system. But you increase the number of lines of code in the free version. I don't understand it.

      • [-] [+]
      • 0
      • DiegoM's avatar
      • DiegoM
      • Construct Team Construct 3 Developer
      • 0 points
      • (3 children)

      When you compare code and events, events handle a lot of the heavy lifting so you can do a lot more with a few events than what you can do with a few lines of code. In fact, a few lines of code won't get you very far.

      The free version is meant to serve as a test drive and with the previous limit to the lines of code you could use, it wasn't really good enough to try out the feature.

      • Beginners come to C3 to work without code. This distinguishes C3 from other programs. If the user knows JS enough to test it, then he has already worked in another program that does not require constant "Scripting updates". But I have no experience in promoting such programs, maybe I'm wrong.

        Load more comments (2 replies)
  • Stellar update !

    Regarding "Properties Bar: suggest string instance variable property values (similar to expression autocomplete)"

    It would be amazing if we could right click an element in the list of suggested values to open a context menu

    - Right click > Replace Value : it would allow to modify the string of the selected value (pop up menu ? or maybe it would be better and faster if the selected value cell would turn into a text input field with the value already blue-highlighted/selected)

    => It would replace the previous value with the new value everywhere it was used : both in all instance properties + in all places in eventsheet where this string value was used for this variable

    It would enhance the enum emulation aspect of this feature :)

    Later this right click context menu could be useful for other things such as :

    - Right Click > Select all instances with this string value

    - Right Click > Find all references of this string value

  • Best update!

  • I'm looking forward to see what the shader god will be able to do with the support of webGL2 shaders. Very nice!

  • Thank you for this update, it fixed the issues I had with opening project that was saved on oldest version of construct (R308)

  • I love it when businesses increase the free access to features, etc. That's extremely generous of you guys and I'm always happy to promote Construct any time I can. Now there's even more incentive!!

  • Scale does not working anywhere

  • Load more comments (2 replies)