Changing layouts takes long

  • Hi, everyone, so I have two layouts in my game now and one of them has quite large, nice pictures (sprites) in it.

    When I try to use the System->goto to change layout from the simple one (menu) to the nice one (game), the game freezes for a couple of seconds, can this be helped or prevented?

    Thanks for reading.

    • thonic
  • can you post the code?

    it might be the images, or some code running on start of layout that is lagging it

  • you say nice picture sprite? If it's big pic file then it would do. instead try loading that sprite as tilebackground and see what happens

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for suggestions, I will try and make an empty project with just two empty layouts, one with the images and (hopefully) see what causes it.

    I read that using the tilebackground for bcgs with large images is less effective than sprites, because it is optimized to repeat the image, but I will give it a shot.

    I have the large background image split into small sprites that I arranged one to another, which I found in the documentation to be the suggested way of dealing with it.

    I can post the code, but it is really simple, just as I described - but I don't want to post the images, it is a commissioned work of an artist.

    In any case, is there a way of making a loading layout that would load the graphics after the application is run? So that you would click in the menu on "game" or something and the graphics would start loading only then.

  • but I don't want to post the images, it is a commissioned work of an artist. It's fine we understand. No need to explain but, as I said try it the way I said. You should be fine.

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