Page 1 of 1

Card back problems

Posted: 22 Jan 2009, 03:22
by Hedge-o-Matic
What is wrong with this code?

Code: Select all

       	<counter-sheet name="Cards" front-image-file="Cards.jpg" front-mask-file="Cards.png"
                back-image-file="Cardsback.jpg" back-mask-file="Cards.png">
		<card-section rows="4" columns="4"
			face-left="0" face-top="0" face-right="1050" face-bottom="1500"
			back-left="0" back-top="0" back-right="1050" back-bottom="1500" />
		</counter-sheet>
What this produces is a deck of 16 cards, each with the proper front face. The back face, however, is the entire card sheet all over again. Doesn't the back-image-file make the default image for the back the image shown? The back image for the card set is never used at all.

Posted: 22 Jan 2009, 10:20
by Pokke
Do you want each card to have a different back? (I'm not sure if that can be done as with counters)

This is my code:

Code: Select all

	<counter-sheet name="Catholic Cards"
		front-image-file="cards-cath.jpg" front-mask-file="cards-mask.png">
		<card-section rows="5" columns="11"
			face-left="0" face-top="0" face-right="3080" face-bottom="2000"
			back-left="3080" back-top="0" back-right="3360" back-bottom="400"/>
	</counter-sheet>
As you can see, I point for the back to a specific location in the same (single) cards bitmap.
I assume that cards can have only one image file, unlike counters.

But I'm not the expert, just my two cents.

Posted: 23 Jan 2009, 04:16
by Hedge-o-Matic
Yeah, I figured it out. I switched to using the card tag, but didn't alter the image to show the back on the same sheet. It's just one stupid mistake after another, sometimes.

Thanks, though!