How do I combine multiple games

Get help using Construct 2

Post » Tue Feb 09, 2016 9:08 am

I would like users to see a first screen offering multiple games and from there they can choose which game to play.
Each game already exists independently.

Does anybody know how I could do this?

Thank you!
B
8
S
1
Posts: 61
Reputation: 578

Post » Tue Feb 09, 2016 9:50 am

I recommend doing this outside of Construct 2. Using pure HTML you can just make images that are links so when a user clicks on an image go to game1/index.html, on the second image go to game2/index.html and so on. The index file is the file that is created when you export as HTML5 website. I never worked directly with HTML5 so I'm afraid I can't give ou an example.
Banned User
B
6
S
3
Posts: 105
Reputation: 1,170

Post » Tue Feb 09, 2016 1:27 pm

tarik00555 wrote:I recommend doing this outside of Construct 2. Using pure HTML you can just make images that are links so when a user clicks on an image go to game1/index.html, on the second image go to game2/index.html and so on. The index file is the file that is created when you export as HTML5 website. I never worked directly with HTML5 so I'm afraid I can't give you an example.

Definitely the easiest way to do this, your directory structure would be as follows in this case:

Code: Select all
./
|- index.htm
|- game1.png
|- game2.png
|- game3.png
|- Game1
  |- index.htm
  |- (Any other data exported by construct)
|- Game2
  |- index.htm
  |- (Any other data exported by construct)
|- Game3
  |- index.htm
  |- (Any other data exported by construct)

And then have your first index file contain a bit of html with links to each game and a picture representing it. e.g.

Code: Select all
<center>
    <table>
        <tr>
            <td><a href="./Game1/index.htm"><img src="./game1.png" /></a></td>
            <td><a href="./Game2/index.htm"><img src="./game2.png" /></a></td>
            <td><a href="./Game3/index.htm"><img src="./game3.png" /></a></td>
    </table>
</center>


You can then make it look as pretty or ugly as you wish.
B
5
Posts: 43
Reputation: 311

Post » Tue Feb 09, 2016 2:57 pm

But I need to be able to export the whole thing as one big game, and if I understand right the way you suggest I will have a page linking to the different games, but not the whole thing as one big game, no? do I understand right?
B
8
S
1
Posts: 61
Reputation: 578

Post » Tue Feb 09, 2016 3:48 pm

Why do you need it to be one large game, exactly?

(Either way, you could make a new project with a ''selection'' layout, that then leads to the appropriate opening layout for each existing game.. You'd need to manually add said game to the project though.. Bit by bit.)
B
5
Posts: 43
Reputation: 311

Post » Tue Feb 09, 2016 5:33 pm

ok, thank you for your help.
I need it because I need to make an app from it that must come from one united game.
I will try it.
B
8
S
1
Posts: 61
Reputation: 578


Return to How do I....?

Who is online

Users browsing this forum: Laurent, wertt22 and 12 guests