What would be the best way to go with card decks?

Get help using Construct 2

Post » Mon May 12, 2014 5:26 pm

Hi guys,

I'm looking to make a sort of card game, and each card has various instance variables (let's say for example, number, name, hp, ap, etc etc).

Is it better to create an object for each card (Like [cardname1], [cardname2], etc) and add them all to a family like [UnitCardsFamily]? Or one object in which each frame is a different card? Maybe save the cards in a database and then call them with Ajax? Or none of these? I'm getting at a sort of block with this issue.
B
4
Posts: 5
Reputation: 215

Post » Mon May 12, 2014 5:56 pm

It would be best to use a single object, and go for different animation and/or frame. You could then save the animation name or the frame number in an array, xml, or any other data medium you want, along with your other attributes.
B
75
S
31
G
27
Posts: 1,012
Reputation: 20,759

Post » Tue May 13, 2014 10:01 am

Thanks for the advice Magistross!
B
4
Posts: 5
Reputation: 215


Return to How do I....?

Who is online

Users browsing this forum: humanescape, R0J0hound, warmty and 5 guests