Advertisement

Card games in flash

Started by June 09, 2003 08:29 AM
2 comments, last by Modena_au 21 years, 8 months ago
Hello all. I'm hoping this is the most suitable forum for this topic. I am creating a card game in flash 5, and I want to simulate a card flip. I have a card texture like so: ________ |CCCCCC| |CCCCCC| |CCCCCC| |CCCCCC| |CCCCCC| |CCCCCC| Now mid flip it will be in an oriantation of: ../| ./C| /CC| |CC| |CC| |CC| \CC| .\C| ..\| Is there an way to stretch or shrink a texture in this fashion. If I change the sides of the card, I just get a repeating patern. I'm yet to find a way to actually stretch it to make it look even half way realistic. I don't want to create a bunch more textures due to size constraints. Thanks in advance. Ok, I don't think I can get that 2nd card to look right, so just imagine the right side is perfectly straight and the top line and bottom line approach each other on the left side. [edited by - modena_au on June 9, 2003 9:30:32 AM] [edited by - modena_au on June 9, 2003 9:30:56 AM] [edited by - modena_au on June 9, 2003 9:31:53 AM]
oh i see, you are putting perspective on the card.

what art program are you using? why not show the actual card texture?
Advertisement
The textures were provided for me. I don''t have a paint program, other than ms paint . Also, warping the images in photoshop would cause an increase in download size, because I would be dealing with more textures.
The easiest way to do this with flash, is probably to draw one card image in a paint program for every frame of your animation.

Otherwise you could try breaking the image apart (break-apart function of flash) and then trying to do a shape tween on it, but I dont think it will look very good.

This topic is closed to new replies.

Advertisement