Create account / Log in

Slide card image behind card sleeve? (design help)

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Slide card image behind card sleeve? (design help)

Postby Goosifer » July 20th, 2012, 9:47 pm

Hi,

Please see http://i.imgur.com/QMd6X.png:

Image

I'm trying to create a map window where the place holder (yellow sleeve) is static but the image behind it (white card) can slide horizontaly. A trigger should send the white card X pixels left or right to reveal the numbers on the white card through the yellow sleeve.

Any suggestions?

Any help would be much appreciated!

Thanks.

-Goose
Goosifer
 
Posts: 13
Joined: June 15th, 2012, 3:27 am

Re: Slide card image behind card sleeve?(design help)

Postby brian448 » July 20th, 2012, 11:35 pm

Make an seperate image of each of the possible positions the sleeve can be
in.

Make a layer that has 1 image per layer and rotate through the layers.



----- Original Message -----
From: "Goosifer"
To:
Sent: Friday, July 20, 2012 2:47 PM
Subject: [messages] [Module Design] Slide card image behind card
sleeve?(design help)


> Hi,
>
> Please see http://i.imgur.com/QMd6X.png:
>
> [1]
>
> I'm trying to create a map window where the place holder (yellow sleeve)
> is static but the image behind it (white card) can slide horizontaly. A
> trigger should send the white card X pixels left or right to reveal the
> numbers on the white card through the yellow sleeve.
>
> Any suggestions?
>
> Any help would be much appreciated!
>
> Thanks.
>
> -Goose
>
> [1] http://i.imgur.com/QMd6X.png
>
>
> _______________________________________________
> Read this topic online here:
> viewtopic.php?p=35250#p35250
> _______________________________________________
> messages mailing list
> messages@vassalengine.org
> http://www.vassalengine.org/mailman/listinfo/messages
brian448
 
Posts: 78
Joined: May 23rd, 2008, 1:35 am

Re: Slide card image behind card sleeve? (design help)

Postby Goosifer » July 21st, 2012, 12:41 am

Perfect, i was going about this in the wrong way, of course you leave the card static and move the sleeve.

Thanks!
Goosifer
 
Posts: 13
Joined: June 15th, 2012, 3:27 am

Re: Slide card image behind cardsleeve? (design help)

Postby brian448 » July 21st, 2012, 1:17 am

Isn't there an x and y offset for each of the images in the layer?

If so, you can add an increasing x offset amount to each image in the layer.




----- Original Message -----
From: "Goosifer"
To:
Sent: Friday, July 20, 2012 5:43 PM
Subject: [messages] Edit: Re: [Module Design] Slide card image behind
cardsleeve? (design help)


> [This message has been edited.]
>
> Thanks, that's the first thing that sprung to mind but I have 37 cards
> and each card can have 45 positions (1665 in total).
>
> I was hoping that you could add a horizontal offset to move the card
> with a trigger.
> Is this doable?
>
> Thanks.
>
> Edit: Or I just move the sleeve and leave the card static, then I just
> need 45 positions.....it's been a long week :roll:
>
> _______________________________________________
> Read this topic online here:
> viewtopic.php?p=35252#p35252
> _______________________________________________
> messages mailing list
> messages@vassalengine.org
> http://www.vassalengine.org/mailman/listinfo/messages
brian448
 
Posts: 78
Joined: May 23rd, 2008, 1:35 am

Re: Slide card image behind card sleeve? (design help)

Postby Goosifer » July 21st, 2012, 2:26 am

I couldn't get that to work since it seems that the offset is for the entire layer class and not the individual layer levels.
Goosifer
 
Posts: 13
Joined: June 15th, 2012, 3:27 am

Re: Slide card image behind card sleeve? (design help)

Postby Goosifer » July 21st, 2012, 3:59 am

The positioning and layering worked great however I ran into another problem.

When moving through the layers, layer 1 will have transparency, layer 2 will have partial transparency and layer 3 loses all transparency. There is nothing wrong with the images, all in PNG format and all taken from the same copy.

Is this a bug?
Goosifer
 
Posts: 13
Joined: June 15th, 2012, 3:27 am

Re: Slide card image behind card sleeve? (design help)

Postby Goosifer » July 23rd, 2012, 1:56 am

Turns out that the issue was 20 inches infront of the screen.

What happens is that the basic piece is always active thus covering parts of the images in the layers when cycled.
(see image in original post, let's say I move the sleeve right from A-0 to A-1)

How can I get around the this issue? The ugly work around is to have the basic piece image almost completely transparant with a thin frame to indicate that it exists.

-Basic Piece (same image as layer 10)
-Layer (20 layers)
-Trigger (cycle layer up)
-Trigger (cycle layer down)
-Does not stack
Goosifer
 
Posts: 13
Joined: June 15th, 2012, 3:27 am


Return to Module Design

Who is online

Users browsing this forum: No registered users and 0 guests