How do I create a Pokedex like ?

0 favourites
  • 5 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • So i'm making game where you merge and combine slime, so i wanted to make a Pokédex.

    Exemple > you create this slime for the first Time > He's added to the Pokédex where u can check all the combinations with this slime

    I tried to make an another layout and variable with the same évent sheet

    1st layout :Slime fire On created > define variable to 1

    Slime water on created > define variable to 2

    2nd layout : if variable = 1 create an object SlimeFireDiscover on Pokedex1

    But since layout dont work at the same Time, when going to pokedex its only showing me the last slime created.

    So I tried on another Layers, but I need more than one Layers because i've a lot of combinations and slime

    So I created :

    Layers 1 : Empty Space for create SlimeFireDiscover at position SlimeFireUnDiscoverx and y

    Set to invisible and cannot interact, when i touch GoToPokédex > Pokédex is visible and interactable

    Working nice perfect

    But on Layers 2 : put another empty Space with different UnDiscover Slime

    And i dont know why i couldnt swap to Layers 1 to Layers 2

    Layers one was Always on my Layers 2 even if i set "invisible" or "opacity 0"

    So I searched more information and i found some about Array and Dictionary.

    But i don't really understand how it work since i'm noob.

    I'm seeking for some advice, thanks a lot 🙇

    construct.net/en/free-online-games/slimelon-61552/play this is my game

    Take care of you ans drink water

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can do a more data-driven style using an Array where each row is a possible type, you can add a 1 if it has been discovered, keep it at 0 if not

  • Ok thanks !! It works on another layout ot should i use layers ?

  • It's a global object so you can access it everywhere. Check out Array in the manual.

  • Thanks again ! You are the boss !

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