With a Haxe (cross-platform) extension, you are just adding new functionality to the engine (using just Haxe) or exposing Haxe / Stencyl-engine features in block form. Used to specify properties for native extensions. More powerful than the in-editor custom blocks. For example, check out the test-flash extension as an example.Įach extension consists of the following parts: Partĭefines custom blocks. Save your game.Īssume that refers to the path to your Stencyl workspace (find it using Debug > View > View Workspace Folder).Īll extensions reside inside subfolders of /engine-extensions/. The extensions will now be enabled/disabled.Click Enable/Disable for the extensions you wish to enable/disable.How To: Enabling / Disabling an Extension Unzip the Extension and copy it into /engine-extensions/.Locate the Stencyl workspace folder ( Debug > View > View Workspace Folder).Note: While extensions are enabled on a per-game basis, they are installed globally, meaning that you only need to install them once. You'll need to enable it in each game that needs to use it.
Where to Get ExtensionsĪfter downloading an extension, do the following.
#Encountered errors while building your game stencyl how to
How To: Installing Extensionsīefore we dive into how to create an extension, it's good to know where to get them and how to turn them on and off. Native extensions require Haxe 3.1 to be installed. No additional software is required to build pure Haxe or Flash extensions.