Layout restarts

  • Link to .capx file (required!):

    dropbox.com/s/ixvmbfqgf1ymz13/bug.capx

    I get the following errors on my default browser (Chrome).

    dropbox.com/s/k6887mcus6enp24/construct%20error2.jpg

    dropbox.com/s/pr74g22huztllav/construct%20error.jpg

    Steps to reproduce:

    1. Run the game

    2. Press Start

    3. Press anywhere on the screen to move the character

    Observed result:

    The current layout restarts itself abruptly. Sometimes it goes to another layout (The first layout) in the middle of the game.

    Expected result:

    The game is supposed to run until the user decides to quit or go to the main menu.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: I get the message saying "This browser does not appear to support HTML5. Try upgrading your browser to the latest version."

    Operating system & service pack:

    Tested on multiple desktops and laptops running Windows 7. Also tested on Android devices.

    Construct 2 version:

    R118 and R114.

  • You need to add some debugging to your system. I added some ChromeConsole (plugin) logging and found your main problem. Making your menu buttons invisible does not disable them. What is happening is the player is randomly hitting invisible buttons, activating them, and causing you to jump to the various layouts.

    Using your current scheme, tidy up the Groups and active/deactivate the groups based on the menus being visible/active or not.

    If you correct this, I'm guessing the crashes won't appear. I suspect they are related to the excessive layout switching, that shouldn't be occurring anyway.

    <img src="http://blackhornettechnologies.com/Construct2Stuff/bub.jpg" border="0" />

  • Thankyou for replying!We understand the problems now but uhmm...our game is designed for android phones. Will the chrome plug in still work or is there an alternative way?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can always remove the object at the last minute, and it will remove all of the references. You can debug other ways too, this is just the easiest that I've found so far. Many of my games had a Debug layer with a Text object that I would print data to. ChromeConsole is much simpler and better (and hidden).

  • Thankyou I've managed to disable the buttons through the use of the activation/deactivation of groups <img src="smileys/smiley17.gif" border="0" align="middle" /> <img src="smileys/smiley1.gif" border="0" align="middle" />

  • I can't reproduce the error messages in your original post. But closing since your events seem to restart the level constantly due to a mistake.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)