How to make card rotation like a wheel?

Get help using Construct 2

Post » Sun Jun 17, 2012 11:46 am

Hi, how to make a card effect like the slot machines?i just have the 52 images of the poker card but i don't know how to make this effect.
then, can you suggest me a site where i can find images better then the simles i have?

thanks you and sorry for my english!
bye bye
B
10
S
2
G
3
Posts: 49
Reputation: 2,333

Post » Mon Jun 18, 2012 6:27 pm

There is a very nice free vector deck of cards at svg-cards.sourceforge.net/

There are many different kinds of slot machines. Can you link to a video of what you are looking for?Kyatric2012-06-19 09:21:18
B
29
S
11
G
12
Posts: 281
Reputation: 11,878

Post » Mon Jun 18, 2012 7:28 pm



i think previously it vas something like that ...
but in fact seems not ... more details please
kittiewan you url link is badnaelian2012-06-18 19:31:01
B
16
S
5
G
3
Posts: 298
Reputation: 5,240

Post » Tue Jun 19, 2012 7:43 am

Yes, like this but only with poker cards...
B
10
S
2
G
3
Posts: 49
Reputation: 2,333

Post » Tue Jun 19, 2012 7:50 am

@kittiewan how can i use the svg file? i can't read the manual, the site don't works
B
10
S
2
G
3
Posts: 49
Reputation: 2,333

Post » Tue Jun 19, 2012 8:27 am

In order to open SVG (Scalable Vector Graphics) files, you'll need a vector graphics editor like Adobe Illustrator or Inkscape (Free).
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Tue Jun 19, 2012 9:22 am

I edited the link in kittiewan's post.

Here it is again : http://svg-cards.sourceforge.net/

You can use inkscape as mentionned above, but you can also use GIMP.

Download the last .tar.gz version available.
A soft like 7zip can allow you to extract the files to the hard-drive.

Open the .svg file in GIMP, export it as .png and import in C2 as a sprite strip.Kyatric2012-06-19 09:30:54
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Tue Jun 19, 2012 9:41 am

@Kyatric thank you so much. thank you.
now i can change cards like frames...
i don't know you to make it change like a wheel of a slot machine but if i can't no matter.
thank you
B
10
S
2
G
3
Posts: 49
Reputation: 2,333

Post » Tue Jun 19, 2012 10:16 am

There are several ways.
One of them could be to display the cards as an animation which animation's speed changes over time.

Like in this commented capx.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Tue Jun 19, 2012 4:24 pm

Thanks for fixing the link, kyatric.

Another way would be to simply move the cards down in a straight line. You could arrange all of the cards in three columns and then move each card down over time. When a card reaches a certain point at the bottom, move it back to the top. Randomly choose a stopping time for each column, at which point you stop moving all of the cards in that column and make sure the closest card is fully showing in its slot. kittiewan2012-06-19 16:25:12
B
29
S
11
G
12
Posts: 281
Reputation: 11,878

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests