layouts or new projects for levels?

0 favourites
  • 3 posts
From the Asset Store
Create your game with this complete pack of images and animations!
  • i'm curious what the best method for "level" or "zone" transfer. say a user is in one location, and needs to exit that, and go into another one, say airport to another city. is it better to use layouts, or separate projects. i don't want to risk load time by having a massive project with a hundred different layouts unless it doesn't effect the load speed when they first go to the game url.

    An example of what i'm talking about is flash files, you would load one, then redirect to another swf when it's needed to run. and simply transfer cookies or whatever stored data between them.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not sure you even can load different projects like that and even if you could it would be unbelievably slow.

  • Well, this is a matter of opinions without much details, but as far as I know:

    C2 downloads every graphic assets on start, thus the initial loading time may be big, however it will only happen once since the entire game is cached (currently with offline.appcache, the way may change in the future), multiple projects is not something I would recommand but is doable technically with a browser go to URL, but then you have the same issue with each level when you wait for it to load (except that you can use a loader layout so it looks like a simple loading screen, which it is in that case.).

    External files can be requested on demand with the ajax object, I did in the past had levels being just text files being interpreted (it was my own system for recreating the level from the text files), I downloaded them on demand when needed during the game itself.

    Audio however can be set to not be downloaded and loaded at the start, so you just request manually the sounds.

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