How do I give abilities to cards in TCG?

0 favourites
  • 5 posts
From the Asset Store
🙌 Ability Skill UI Sound Pack comes with 115 high-quality sound effects
  • I'm making a game very similar to TCG where players have a set number of cards in their hands, and they can play it when they put the card in the play area. There are also several phases in the game like reveal phase, damage phase, cooldown phase, etc. I want some of the cards to have an ability that can take effect when certain phases start (something similar to "On reveal, heal x points to your life point")

    I don't know if C2 allows us to create a custom event that will trigger when we want it and if we can define a listener for said trigger, so I use a signal and wait for signal actions. However, I can imagine that this will make the event sheets big and unmanageable if every card's effect is several lines of code waiting for a signal. I want to know if there's a better way to manage card's abilities in a TCG?

    Maybe I can use functions somehow, but I want to ask first.

  • My first guess would be to use functions for this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yeah, but the number of functions would be huge. I was asking to know if C2 can do something that I don't know it can.

  • Edit* This is easier to read before C3 forum auto formatting, so I posted a SS instead.

  • That looks like a great solution, let me try it out

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