When Construct 3 was originally released, it used the same runtime (game engine) as Construct 2. After a while a completely new runtime was developed specifically for Construct 3. It was rewritten from scratch and offers significantly improved performance and a range of major new features. See the C3 runtime blog posts for the announcements made during its development for more information. The old runtime is referred to as the C2 runtime, and the new one as the C3 runtime.
The built-in examples, and new projects, default to the new C3 runtime. Existing projects, and any imported Construct 2 projects (.capx files), will be automatically converted if compatible.
You can switch a project to the C3 runtime by changing the Runtime property in the Advanced section of Project Properties. By default the Advanced section is collapsed, so you may need to expand it first.
When you open a project using the C2 runtime, Construct will automatically convert it to the C3 runtime for you if it is compatible.
Some features are only available in one runtime. If your project uses any such features, it will prevent you from changing the runtime. For example if you switch to the C3 runtime and add a new plugin only available in the C3 runtime, then you won't be able to switch back to the C2 runtime. Construct will prompt you with a list of reasons why you cannot switch runtime, so you have the opportunity to revert any changes in case you really need to switch back.
This can also happen the other way, i.e. being unable to upgrade to the C3 runtime because your project uses features only available in the C2 runtime. Generally this is due to the use of third-party addons that have not been ported to the C3 runtime.
The C3 runtime is designed to be as close to 100% compatible with the C2 runtime as possible. Most of the time, projects should continue to work identically after changing the runtime. However there are some cases where intentional changes have been made, usually to better organise features or improve the design of problematic features. Below is a comprehensive list of all compatibility differences between the C2 and C3 runtimes.
The C2 runtime supports older browsers and platforms, some of which are no longer widely used. The C3 runtime is designed with more modern features and has higher requirements. The main practical differences are:
Internet Explorer: the C2 runtime supports IE9-11. The C3 runtime does not support Internet Explorer at all, but does support Microsoft Edge, the browser Microsoft have replaced IE with.
iOS / Safari: the C2 runtime supports iOS / Safari 9+, whereas the C3 runtime requires iOS / Safari 12+ for full support. It can run on iOS / Safari 11, but due to bugs in Apple's software there are some features that do not work, notably WebM Opus audio playback and video playback. If these are not essential then you may be able to use the C3 runtime on iOS / Safari 11.
Cordova on Android 5-6: Cordova apps are powered by the Android System Webview app on Android 5.x and 6.x. By default this app should be set to auto-update. However in some cases users or manufacturers disable updates for this app, leaving it years out of date and incompatible with the C3 runtime. If this happens, the app will show a message indicating to update the Android System Webview app. However if this is a major problem, you may wish to continue using the C2 runtime for the time being. On Android 7+ Cordova apps are powered by the Google Chrome app instead, which appears to always be up-to-date, so this does not appear to be a problem on these devices.
All other platforms, such as the Chrome and Firefox browsers, all use auto-updating software so should work with the C3 runtime.
The main compatibility problem is likely to be the availability of third-party addons. If your project uses a third-party addon that is not available in the C3 runtime, you won't be able to upgrade the project to the C3 runtime. Check with the addon developer to see if there is an update that supports the C3 runtime, or if you can replace the addon with other new features available in the C3 runtime.
Dynamically creating objects
In the C2 runtime, creating an object which is not placed on the layout (and so is not loaded in to memory) immediately loads images for the object, which can "jank" the game (cause a short pause while loading is done). In the C3 runtime, in this case the game continues to run and the images are loaded in parallel. This provides better loading performance and avoids janking the game. However the object can exist for a short period of time while the images are still being loaded. During this time the object is not drawn, as if it were set to invisible. In some cases this can cause a noticable flicker, especially if the object is intended to cover up something else. The workaround is to simply place the object in the layout, and destroy it in On start of layout if it is not needed. This ensures Construct loads its images when loading the layout, avoiding any delay when creating it.
System object changes
The following changes were made to the System object, and system expressions, in the C3 runtime:
- The WindowWidth and WindowHeight expressions have been removed. These were confusingly named, but if you need the same values, use the Platform Info object's CanvasDeviceWidth and CanvasDeviceHeight expressions. Usually it's better to use the new ViewportWidth and ViewportHeight system expressions instead, which return a size in layout pixels rather than device (physical display) pixels.
- The Is on mobile and Is on platform conditions have been moved to the Platform Info object.
- The Renderer and RendererDetail expressions have been moved to the Platform Info object.
- The rgb expression has been removed. Instead use the new rgbEx or rgba expressions. Note rgb used values in the 0-255 range, but rgbEx and rgba use values in the 0-100 range, and also support a wider range with better precision.
User Media object changes
In the C3 runtime, the User Media object's speech synthesis, speech recognition, and canvas recording features have been moved to separate plugins (Speech Synthesis, Speech Recognition and Game recorder). Existing projects using these User Media features can be switched to the C3 runtime, but those features will no longer work until you replace them with the new plugins.
Also note that the Snapshot action no longer provides the snapshot immediately: you must use the On snapshot ready trigger to know when SnapshotURL is available.
Browser object changes
The following changes have been made for the Browser object in the C3 runtime:
- The battery features have been removed due to lack of browser support.
- The network information and various display related expressions have been moved to the Platform Info object.
- On suspended and On resumed have been moved to the System object. The Page is visible condition has been replaced with the Is suspended system condition (which makes the inverse check).