[Feature Request] Fade behavior: Actions

Discussion and feedback on Construct 2

Post » Wed Oct 15, 2014 12:13 am

Hi

It will be very helpful if we could edit the properties of the Fade behaviour (Fade in time, Wait time, Fade out time and Destroy) at runtime.

I have one Sprite but multiple objects of that Sprite (but I can't set different Fade times to each at runtime).

I'm pretty sure that the solution is not create different objects, but instead just change the fade times of each object after created it.

Thank you @Ashley!
B
93
S
31
G
11
Posts: 654
Reputation: 11,832

Post » Wed Oct 15, 2014 12:32 am

+1

The fade behavior does need more attention :)
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Wed Oct 15, 2014 12:52 am

I've been asking for this for so long... but in the end I made a few modifications to official Fade behavior.

Called it "Fade Adv" from lack of better ideas xD

EDIT: You can now download it from here Fade Adv
If you downloaded previous version, then please delete it and redownload it from that page I've posted here - This is a proper 1.0 version with all extra things that was not present in ma previous upload :)

It's all super simple but this small modifications helps and speed up things a lot !

I really would like that Ashley could add this to official plugin as well. I'm not a plugin/behavior creator and it took me only about 15 minutes to understand, add and test all of this this, so Ashley could probably do this in 3 with eyes closed ;)
Last edited by shinkan on Wed Oct 15, 2014 1:17 pm, edited 1 time in total.
ImageImageImageImage
B
159
S
67
G
43
Posts: 2,603
Reputation: 36,028

Post » Wed Oct 15, 2014 2:08 am

damn, yeah i've got like 5 different spritefont objects with the same font because of this... thanks for the FadeAdv, @shinkan...
Made Cosmochoria - www.cosmochoria.com
Currently working on Slayaway Camp - www.slayawaycamp.com
B
27
S
8
G
3
Posts: 384
Reputation: 5,020

Post » Wed Oct 15, 2014 2:46 am

@shinkan great addon. can't wait to implement it. looks like it should make some stuff easier
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Wed Oct 15, 2014 9:13 am

Wow @shinkan ! That's super! Thank you very much!!! Shouldn't this be here: c2-plugins-and-behaviors-list_t65170 ???
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Wed Oct 15, 2014 11:43 am

Thanks guys :)
@eli0s

I want to add some more thing to setup before I made it "official" (like possibility to choose Destroy method)... but looking at OP's avatar just couldn't resist posting it ;)

oh and btw. Fade Adv will always fade from current object opacity (even opacity set by events). It will not set it to 100 and then fade, like official Fade does !
ImageImageImageImage
B
159
S
67
G
43
Posts: 2,603
Reputation: 36,028

Post » Wed Oct 15, 2014 12:33 pm

shinkan wrote:I want to add some more thing to setup before I made it "official" (like possibility to choose Destroy method)... but looking at OP's avatar just couldn't resist posting it ;)


LOL :) In my country there's a saying that loosely translated goes like this: " Together with the basil (the plant) the pot is also been watered". I feel like a happy flowerpot right now :)

shinkan wrote:oh and btw. Fade Adv will always fade from current object opacity (even opacity set by events). It will not set it to 100 and then fade, like official Fade does !


OMG shinkan , that's super useful, now I can fade out sprites with random opacity values, without the annoying "flashing" that comes with the default fade behavior when applied on a sprite with opacity less than 100!!! Before I had to use instance variables to control the opacity and do the fading/deleting, it's so much easier now!!!

Again, thank you so much for sharing!!!
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Wed Oct 15, 2014 1:04 pm

I'll see if I can get some improvements in for the next beta.
Scirra Founder
B
403
S
238
G
89
Posts: 24,659
Reputation: 196,165

Post » Wed Oct 15, 2014 1:15 pm

Thanks @Ashley,
I've posted my behavior same time you were replaying here ;)

You can still grab it from here Fade Adv
If you downloaded previous version, then please delete it and redownload it from that page I've posted here - This is a proper 1.0 version with all extra things that was not present in ma previous upload :)
ImageImageImageImage
B
159
S
67
G
43
Posts: 2,603
Reputation: 36,028

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests