How do I create this 1 vs. 1?

0 favourites
  • 3 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • Hey guys,

    the idea is to create a 1 vs. 1 game, with different characters and levels the player can choose from. For example's sake i'll keep it easy:

    In the start menu, each player can choose between character A, B, C and together they'll choose setting(level) X, Y, Z. The setting includes different enemies and environments. The players can choose different weapons and stuff too. Of course, all this has to be loaded into the gamescreen.

    My question is, do I create events for everything separately, or are there any techniques to make this easier? Have you created any examples, or tips to help me further? Is it advised to use global objects for this?

    Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well, there is not a definite answer for this question as it depends a lot on your project.

    I'll assume you mean you are on a first layout when you decide your games "settings". And the game happens on another layout.

    To transfer informations from a layout to another you have several tools.

    Global variable is one of them. Array and dictionary are another.

    Just consider, in the start of layout for your "game" layout to go check the values of either the global variable and/or array/dictionary (depending on what data structure you decided) and set the current layout according to those values.

    You have three character to chose from which can be controlled either by player 1 or player 2.

    It means that one instance of character will be destroyed to only leave the two instances chosen by the players.

    One instance will be assigned to the first player, the other to the other player. (For more informations on how to assign instances to a player or another check out my Bomberman-like tutorial).

    Then you apply the X,Y, Z settings.


    It is up to you to "program" for yourself what values you will have to pass from the first layout, and how to "interpret" those values on your second layout so that it makes a consistent game.

  • Try to use groups. So you can enable/disable depending on the char the player selected.

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