View a comprehensive history of all the new Javascript scripting feature updates and changes Construct 3 since the first release.

Not favoritedFavorited Favorited 1 favoris
Disabled language specific identation in text editors - prevents unneeded indentation in JS when following the style of having the opening brace on a new line
Not favoritedFavorited Favorited 2 favoris
Referencing an undefined variable in a script is now assumed to be an external variable, and is considered to be defined in the global scope by the autocomplete system
Not favoritedFavorited Favorited 3 favoris
New script interfaces for Array, Button, Dictionary, Sprite, SpriteFont, Text, Text Input, Tiled Background and Tilemap
Not favoritedFavorited Favorited 2 favoris
Added "deviceorientation" and "devicemotion" events, and Touch script interface for requesting orientation/motion permission
Not favoritedFavorited Favorited 3 favoris
Add runtime.invokeDownload() method
Not favoritedFavorited Favorited 3 favoris
Fix incorrect error using 'await' in event sheet script blocks
Not favoritedFavorited Favorited 3 favoris
Both 'runtime' and 'localVars' are now recognised by the script analyser in event sheet script blocks
Not favoritedFavorited Favorited 6 favoris
Autocomplete could be triggered by the up and down arrow keys, interrupting document navigation
Not favoritedFavorited Favorited 5 favoris
New scripting examples 'Simple alert', 'Simple keyboard movement', 'Local storage' and 'Integrating events with script'
Not favoritedFavorited Favorited 7 favoris
Autocomplete of variables and properties
Not favoritedFavorited Favorited 4 favoris
Added runtime.assets.loadStyleSheet() method
Not favoritedFavorited Favorited 6 favoris
Add option to create new JavaScript file in 'Files' folder (useful with loadScripts)
Not favoritedFavorited Favorited 6 favoris
Added option to the Settings dialog to allow the font size to be changed for all text editor and inline script blocks
Not favoritedFavorited Favorited 6 favoris
Runtime now fires pointer events for both mouse and touch input
Not favoritedFavorited Favorited 7 favoris
Script interface for Binary Data plugin
Not favoritedFavorited Favorited 5 favoris
Code editor now focused after adding a script
Not favoritedFavorited Favorited 5 favoris
Possible crash calling event functions from script
Not favoritedFavorited Favorited 2 favoris
Importing scripts could cause preview to fail
Not favoritedFavorited Favorited 3 favoris
Added runtime.storage APIs (accesses same storage as Local Storage plugin)
Not favoritedFavorited Favorited 2 favoris
Possible incorrect "never modified" warning when the only modifications were unary increment/decrement operators
Not favoritedFavorited Favorited 2 favoris
Possible incorrect "cannot access before initialization" warning when accessing variables of a higher scope from a function
Not favoritedFavorited Favorited 3 favoris
Incorrect scoping of "var" declarations in warning analysis
Not favoritedFavorited Favorited 1 favoris
Warnings that highlight class or function declarations will now highlight the identifier instead of the whole declaration
Not favoritedFavorited Favorited 3 favoris
New warning if declaring a "function" or "var" with the same name as another in the current scope
Not favoritedFavorited Favorited 6 favoris
Asset APIs to load external scripts & WebAssembly modules
Not favoritedFavorited Favorited 6 favoris
New 'Loading external script & WebAssembly' example
Not favoritedFavorited Favorited 7 favoris
Access global variables in event sheets via runtime.globalVars
Not favoritedFavorited Favorited 6 favoris
Access local variables in event sheets via localVars in script actions/blocks
Not favoritedFavorited Favorited 5 favoris
runtime.setReturnValue() function to make it easier to return script values from event functions
Not favoritedFavorited Favorited 5 favoris
Script interfaces for layouts and layers
Not favoritedFavorited Favorited 4 favoris
Editor now validates JavaScript code in your project before preview or export, prompting you to fix syntax errors
Not favoritedFavorited Favorited 4 favoris
Debugger CPU profiler now separately measures time spent in scripts
Not favoritedFavorited Favorited 5 favoris
Added warnings for unused variables, use-before-initalise and assigning to constants
Not favoritedFavorited Favorited 7 favoris
Lots of new APIs to use in scripts
Not favoritedFavorited Favorited 3 favoris
New example category 'Scripting' on Start Page, with 'Ghost shooter code' and 'Audio scripting' examples (more to come)
Not favoritedFavorited Favorited 7 favoris
Full code editor now used for editing code in event sheets
Not favoritedFavorited Favorited 3 favoris
Syntax highlighting for code in event sheets
Not favoritedFavorited Favorited 4 favoris
Error highlighting when editing code in event sheets or files
Not favoritedFavorited Favorited 3 favoris
Updated default script file template, and is now only used for first script
Not favoritedFavorited Favorited 3 favoris
Script files now run after the engine instead of before
Not favoritedFavorited Favorited 2 favoris
Exporting projects using script files now works