can we make a single app in C3 to showcase and play multiple games?

Not favoritedFavorited Favorited 1 favourites
From the Asset Store
Create your own casino app and import it to Google Play and the App Store.
  • I want to make an App in c3 where I want to showcase and play multiple games I have made in c3. also I want to buttons like, sound, theme etc button in that app which will also reflect changes in the games.

    is this possible in Construct 3?

  • dont u make a website for this stuff?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I want single app (apk) to upload on playstore. in the app I will display & play multiple games.

  • I'd guess the easiest way to do this would be to show other exported projects in an iframe.

  • Ashley in that case where to place other games in app project? I want all games offline playable. So I don't want to upload them on servers. they will available directly inside game.

  • I think you'd need to do an ordinary web export of the other projects, and import all their files to different subfolders in the general 'Files' folder in the Project Bar of the main viewer project. Then you should be able to do something like navigate an iframe to "subfolder/index.html" and it should load the project exported in that folder. I haven't tried this though.

  • nope it showing construct web page

  • It looks like you navigated the main window rather than an iframe.

    By far the easiest way to help is if you share a project. Otherwise I can only rely on telepathy, which isn't very reliable.

  • in few tries I was able to play single c3 game inside c3 project. adding more games to file causing errors as you can see in bellow screenshots

    files are not showing in game2 and game3 folder inside project file

    files are there as we can see in windows folder view.

    I'm attaching whole project file (minimal version).

    TestApp

  • apart from this bug, let’s say if this bug is fixed and I am able to add and play multiple games in this app, then is there a way so that I can pass a value from main app to these games? like sound, theme etc.

  • This should work in theory, but it will clash with a basic restriction of the Files folder, no duplicate file names.

    Importing the files of the first export will be fine, after that if you try to import a new file that has the same name as an existing one, the old file will be updated.

    Even if a new unique name was assigned to each file so everything was imported as expected, the name changes would probably break the exports.

    A possible solution I am thinking about would be compressing each export in it's own zip file, then importing each zip file with a unique name. Doing that you should be able to keep each export intact because C3 doesn't actually get to see the compressed files.

    Then you would need some scripting to decompress a zip at runtime and show the contents in the iframe. Assuming you also import zip.js to handle decompressing the zip files at runtime, it shouldn't be too difficult... depending of course on how comfortable you feel about scripting. What I just described will be pretty difficult if you are not comfortable scripting.

  • yup I don't know programming.

  • Ah yes, no duplicate filenames does make this a bit tricky. The good news is we're planning to lift that restriction soon when the 'Flat' folder structure mode is removed. Until then I think you might have to do something a bit more hacky - perhaps you could export to Android Studio/Xcode, then add the extra files to the app. The idea is to add the extra files outside of Construct, but in a way that still bundles them with the app.

  • ok then I'll simply wait for the update when restriction will be removed.

  • This should work in theory, but it will clash with a basic restriction of the Files folder, no duplicate file names.

    Importing the files of the first export will be fine, after that if you try to import a new file that has the same name as an existing one, the old file will be updated.

    Even if a new unique name was assigned to each file so everything was imported as expected, the name changes would probably break the exports.

    A possible solution I am thinking about would be compressing each export in it's own zip file, then importing each zip file with a unique name. Doing that you should be able to keep each export intact because C3 doesn't actually get to see the compressed files.

    Then you would need some scripting to decompress a zip at runtime and show the contents in the iframe. Assuming you also import zip.js to handle decompressing the zip files at runtime, it shouldn't be too difficult... depending of course on how comfortable you feel about scripting. What I just described will be pretty difficult if you are not comfortable scripting.

    Just wanted to say thanks for this writeup, I've been wondering about zipping stuff and have minor experience with scripting (but managing to get somewhere these days!), and have been mixed on available zip addons, but this has encouraged me to explore zip.js a little further.

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