Advisor's Recent Forum Activity

  • Hi,

    Did you reported it here?

    https://github.com/Scirra/Construct-3-bugs/issues

    Hi!

    I plan in the near future.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Perhaps someone has experienced the error "Error: texture released too many times" but could not repeat it again. This error is shown in my source code.

    Small description:

    There are three layouts: the menu, the background selection layout, and the layout where objects are stored.

    In the "Files" section, we have three images (backgrounds) in the "webp" format. Their names are written as "bg_&id.webp".

    We have a BG object in the menu layout and in the background selection layout.

    We have a function that loads an image from the "Files" section ("Load Image From") into the BG object, the function has an id parameter. This function is called at the start of layouts, the global variable BG_ID is passed to the parameter. There are no bugs here.

    In the background selection layout, we have a loop (from 0 to 3) that creates a template with a hierarchy, an object with 4 identical frames is attached to it (the original frame size is 2x2). After creating the object, we set a frame for it from the loopindex, load the file with the URL ("bg_"&loopindex&".webp) into the image, and also set the ID for further logic.

    After this cycle, we encounter the first bug: not all frames were loaded correctly (one random one looks like the original template). We already have an error in the console: "Texture released too many times", but the game does not freeze. Attached an image of how it looks (the order should be: blue, green, purple, orange)

    After clicking on any of the objects (to select a background), we should be transferred to the Menu layout, but the game freezes and the same error appears in the console.

    Open the source to test everything yourself. Changing the max spritesheet size does not solve the problem.

    //File c3p:

    dropmefiles.com/BcY2P

    or

    disk.yandex.ru/d/Xo8p7BhBrC_9kQ

  • My game has different objects like backgrounds and avatars. For example, if you load a lot of frames into these objects, then this will be an extra load of memory on the layout. Therefore, I decided to move all the images to the Files folder and load the object through the Load from URL. But here another problem arises - sometimes such loading works slowly.

    How can you do it in an optimized and instant way?

    I also found one obscure feature, you can view it in the source. When starting the layout and changing the icon, everything will not work correctly, but move the "FramesIcons" sprite from the "IconsRoom" layout to the "Menu" layout and you will see that the images load correctly when the icon is changed.

  • I found a good solution on Twitter: https://https://mobile.twitter.com/flomine68/status/960172515053195265

    but don't understand how to do it in Construct 3.

Advisor's avatar

Advisor

Member since 18 Apr, 2022

None one is following Advisor yet!

Trophy Case

  • 2-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies