How do I make a trigger event at the same time happen for every cards?

0 favourites
  • 3 posts
From the Asset Store
Very simple code without excess options (15 events for server and 11 events for client)
  • I hope I word the question correctly, I don't know how to correctly call it.

    I have a MoveTo event on a cards family, and basically I want to move them to player's hands.

    Here is the event sheet.

    It works if I return only one card to player's hand. The problem shows up when I return 2 cards (possibly more than 2 too, but I haven't tested that far). The actions on event 51 only run on one card and not the other. Making one card floating above the player's hand, can't be selected.

    How do I make it, so that all the cards returning to player's hands are destroyed and then the game makes a new player hand?

  • There could be more at play here, but it looks like simply adding "For Each -> Cards" under the Arrived trigger will take care of this issue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • that sounds like a good idea. I think it'll need a bit more than just adding for each, but I'll know for sure when I test it.

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