How do I make a smooth transition?

Get help using Construct 2

Post » Tue Jan 24, 2017 8:13 am

Hello!
How to make a smooth transition from one character to another?
Image

smooth-transition.capx:
https://www.dropbox.com/s/x4r1xcfexcnju ... .capx?dl=0
B
26
S
5
Posts: 22
Reputation: 1,376

Post » Tue Jan 24, 2017 9:45 am

What do you need help with?
B
47
S
18
G
84
Posts: 2,273
Reputation: 49,800

Post » Tue Jan 24, 2017 11:36 am

plinkie wrote:What do you need help with?

Hi, thanks for answer
I want make smooth transition of one character to another. I mean now it happens instantly. The transition from pink character to red character in example
B
26
S
5
Posts: 22
Reputation: 1,376

Post » Tue Jan 24, 2017 12:35 pm

Fade out white as you fade in red
B
38
S
18
G
19
Posts: 664
Reputation: 14,112

Post » Tue Jan 24, 2017 2:31 pm

So, the characters are different shapes? If you want to morph two images in C2 then I think youre out of luck. Two alternative options come to mind:

1) 2 sprites swapping opacity over time, attached to a dummy sprite.
2) Create the images morphing in another program and import it into c2 as an animation.
Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,334

Post » Thu Jan 26, 2017 10:20 am

gameglaux wrote:So, the characters are different shapes?

Yes

I tried to do the animation of the explosion between the transition from one character to another.
But the animation is too long. It is necessary that transition took place while the character is in the air.

If delete frames it does not look good.

Could you make an example of transparency or fade effect
B
26
S
5
Posts: 22
Reputation: 1,376

Post » Thu Jan 26, 2017 11:59 am

@Leondr Your idea of 'masking' the transition with a separate animation sounds better to me. If the animation is ok but too slow, cant you just increase the animation speed?
Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,334

Post » Thu Jan 26, 2017 2:45 pm

You could do it this way: have 2 sprites, one red and one pink.
Pin one of the sprites to another.
Move the pink one, for example, to top ( z order).

Platform on jump
(Sub-event)Pink sprite opacity = o. ---> set opacity to 100 (I don'n now the formula .. Something with dt)
(Sub-event)Pink sprite opacity = 100 ---> set opacity to 0 (set opacity graduatly)

This is how I would do it, maybe someone from the forum will help you with the formula.
B
41
S
10
G
9
Posts: 213
Reputation: 7,089


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 34 guests