How do I do this?

Not favoritedFavorited Favorited 0 favourites
  • 8 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • For context real quick (doesn't matter if you play this type of game or not) I'm making a pack opening simulator for a card game, I'd like to make a deck builder.

    How would I take a bunch of sprite objects and have them listed out for a search, but also be able to have those objects not pop up if the variable for how many of a given object you own is 0 without having any gaps between anything?

    Sorry if this is poor wording, feel free to ask any questions out of confusion.

    Tagged:

  • How would I take a bunch of sprite objects and have them listed out for a search, but also be able to have those objects not pop up if the variable for how many of a given object you own is 0 without having any gaps between anything?

    what ?

  • I asked ChatGPT to decipher this post:

    Yeah, I get what they’re asking. They’re making a pack-opening simulator (like for a collectible card game) and want to add a deck builder. The issue they’re facing is displaying a list of cards in a searchable way without gaps, while also making sure cards with a quantity of zero don’t appear.

    Breaking Down the Problem:

    • Listing cards for a search → They need a way to display all the cards they own.
    • Hiding cards with zero quantity → If a card isn’t owned, it shouldn’t be listed.
    • No gaps → If a card is removed, the list should shift up to keep things tidy.

    Cameron9990 Is this what you are asking?

  • I asked ChatGPT to decipher this post:

    Yeah, I get what they’re asking. They’re making a pack-opening simulator (like for a collectible card game) and want to add a deck builder. The issue they’re facing is displaying a list of cards in a searchable way without gaps, while also making sure cards with a quantity of zero don’t appear.

    Breaking Down the Problem:

    • Listing cards for a search → They need a way to display all the cards they own.
    • Hiding cards with zero quantity → If a card isn’t owned, it shouldn’t be listed.
    • No gaps → If a card is removed, the list should shift up to keep things tidy.

    Cameron9990 Is this what you are asking?

    ...correct

  • Check out this demo:

    howtoconstructdemos.com/template-for-a-card-game-shuffling-a-deck-of-cards-dealing-cards-to-two-players

    It may not be exactly what you are asking, but it shows how to sort and re-arrange cards.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Check out this demo:

    https://howtoconstructdemos.com/template-for-a-card-game-shuffling-a-deck-of-cards-dealing-cards-to-two-players/

    It may not be exactly what you are asking, but it shows how to sort and re-arrange cards.

    What? not in the slightest what I need, that's why I said the card bit wasn't important. I guess what I'm asking for is more like an inventory thinking about it.

    Like a database of cards... but only showing the ones you own, or what meets the search criteria without any gaps or anything.

  • Well one way would be to have one sprite type and call it “card”. You’d have all the different looks of the cards as different animation frames, and you’d set the animation speed to 0. Basically you’d create or destroy individual cards to add or remove cards you own.

    You’d then select certain cards from that with conditions to pick them.

  • Or do you need to arrange them differently? Post a picture of what you have in mind, or a video of a similar game.

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