Problem Description
The game crashes on a specific moment: when the player collects a new weapon in game. This only happen when the game is exported and played on NW.js.
When the weapon is collected, the camera zoom in, the weapons name appears on screen, the background color inverts, and a "collected" sound is played.
The game works perfectly when played inside Construct (Run Layout mode).
Attach a Capx
tinyurl.com/jhma986 (google drive)
Description of Capx
Open the game and play the game (Run layout). Make sure that the "preview browser" is "NW.js". Move to the right and collect the shotgun (don't have to press any key, just move into it). The player will collect the gun and all animations and sounds will play.
Steps to Reproduce Bug
- Step 1:
Open the game and play the game (Run layout). Make sure that the "preview browser" is "NW.js". Move to the right and collect the shotgun (don't have to press any key, just move into it). The player will collect the gun and all animations and sounds will play. The game will work just fine.
Step 2:
Close "Run Layout" screen.
Step 3:
Export the game for NW.js.
Step 4:
Play the game (I played in win 32) and reproduce step 1 (collect the weapon). The game will crash.
Observed Result
The game crashes when played in exported NW.js.
Expected Result
The game screen will close abruptlly.
Affected Browsers
Operating System and Service Pack
Windows 10 32bits
Construct 2 Version ID
Construct 2 Version: 239