How do I stretch an object during runtime?

Get help using Construct 2

Post » Sat Nov 24, 2012 6:21 am

I want to be able to stretch/skew/morph a square sprite into a trapezoid shape. It will be for an animation I want to make of flipping a card over.

I assigned the "stretch" effect to the sprite and enabled the effect when I click on it. But now I need to change the "parameter index" and give it a "value" but I have no idea what these values should be.

Is this the right avenue at all or is there another way? Thanks!
B
10
S
3
Posts: 102
Reputation: 1,888

Post » Sat Nov 24, 2012 7:18 am

Instead of trying to "stretch" the card in a 2d space, why not create sprite animations? I think that solution will look much smoother.
B
20
S
4
G
2
Posts: 124
Reputation: 2,482

Post » Sat Nov 24, 2012 12:33 pm

I want to avoid using animation frames because then I would have to make each individual frame and since I am doing this for cards, it would have to be a lot of different card faces to make animation frames for.

I think I am just going to use the setSize property and make the width get really narrow so it looks like it's flipping over. It should be fast enough that it won't look wierd that the perspective is wrong.
B
10
S
3
Posts: 102
Reputation: 1,888

Post » Sun Sep 22, 2013 3:09 pm

I also want to stretch a sprite and it seems the Stretch Fx doesn't have any parameters??

what did you end up going with?
B
53
S
13
G
7
Posts: 929
Reputation: 8,455


Return to How do I....?

Who is online

Users browsing this forum: Matthew de and 26 guests