Fading sprite into the screen

I want to make an image appear into the screen by fading in? is there a way I could do that?

1 Like

Yep! Give me a second to make a fading bundle for you.

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":2,"outputCount":0,"name":"Fade","behaviorType":"logic.NodeGroup","x":-90,"y":-16,"group":"","id":"ec24c857dd8c484c","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-90,"y":-32,"group":"ec24c857dd8c484c","id":"ec24e1fed9822843","portId":"ec24c857dd8c484ci0","tag":"In","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-90,"y":96,"group":"ec24c857dd8c484c","id":"ec24e2a21fbd1d4b","portId":"ec24c857dd8c484ci1","tag":"Out","dataType":2},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":90,"y":-48,"group":"ec24c857dd8c484c","id":"ec25956e62595e45","_startVal":1,"dataType":2},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":90,"y":96,"group":"ec24c857dd8c484c","id":"ec259697061e8a4e","_startVal":1,"dataType":2},{"delay":0.1,"count":100,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":270,"y":-16,"group":"ec24c857dd8c484c","id":"ec2650a27901a54c"},{"delay":0.1,"count":100,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":270,"y":96,"group":"ec24c857dd8c484c","id":"ec26513a3aebda4a"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":450,"y":0,"group":"ec24c857dd8c484c","id":"ec277788f17b4345","startVal":1,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":450,"y":96,"group":"ec24c857dd8c484c","id":"ec277976aa475540","startVal":-1,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":630,"y":48,"group":"ec24c857dd8c484c","id":"ec27a2804166c24b","startVal":0,"tag":"","roundMode":1},{"gateVal":100,"mode":"greater than or equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":630,"y":144,"group":"ec24c857dd8c484c","id":"ec27fd729f5d0545"},{"gateVal":0,"mode":"less than or equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":630,"y":-64,"group":"ec24c857dd8c484c","id":"ec27fdfdeb53334a"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":810,"y":160,"group":"ec24c857dd8c484c","id":"ec2836ee44d01c48","startVal":100,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":810,"y":-64,"group":"ec24c857dd8c484c","id":"ec283f11d3580840","startVal":0,"roundMode":1},{"inputCount":1,"outputCount":1,"name":"Alpha","behaviorType":"logic.properties.Alpha","x":810,"y":64,"group":"ec24c857dd8c484c","id":"ec2882d9333cdf42"},{"inputCount":0,"outputCount":1,"name":"Once","behaviorType":"logic.triggers.Once","x":360,"y":-96,"group":"ec24c857dd8c484c","id":"ec29613665e7e148","resetOnLevelStart":false}],"links":[{"input_id":"ec25956e62595e45i1","output_id":"ec24e1fed9822843o0"},{"input_id":"ec25956e62595e45i2","output_id":"ec24e1fed9822843o0"},{"input_id":"ec259697061e8a4ei1","output_id":"ec24e2a21fbd1d4bo0"},{"input_id":"ec259697061e8a4ei2","output_id":"ec24e2a21fbd1d4bo0"},{"input_id":"ec2650a27901a54ci0","output_id":"ec25956e62595e45o0"},{"input_id":"ec259697061e8a4ei0","output_id":"ec25956e62595e45o0"},{"input_id":"ec26513a3aebda4ai1","output_id":"ec25956e62595e45o0"},{"input_id":"ec25956e62595e45i0","output_id":"ec259697061e8a4eo0"},{"input_id":"ec2650a27901a54ci1","output_id":"ec259697061e8a4eo0"},{"input_id":"ec26513a3aebda4ai0","output_id":"ec259697061e8a4eo0"},{"input_id":"ec277788f17b4345i1","output_id":"ec2650a27901a54co0"},{"input_id":"ec277976aa475540i1","output_id":"ec26513a3aebda4ao0"},{"input_id":"ec27a2804166c24bi2","output_id":"ec277788f17b4345o0"},{"input_id":"ec27a2804166c24bi2","output_id":"ec277976aa475540o0"},{"input_id":"ec27fdfdeb53334ai1","output_id":"ec27a2804166c24bo0"},{"input_id":"ec2882d9333cdf42i0","output_id":"ec27a2804166c24bo0"},{"input_id":"ec27fd729f5d0545i1","output_id":"ec27a2804166c24bo0"},{"input_id":"ec2836ee44d01c48i1","output_id":"ec27fd729f5d0545o0"},{"input_id":"ec283f11d3580840i1","output_id":"ec27fdfdeb53334ao0"},{"input_id":"ec27a2804166c24bi0","output_id":"ec2836ee44d01c48o0"},{"input_id":"ec27a2804166c24bi0","output_id":"ec283f11d3580840o0"},{"input_id":"ec27a2804166c24bi1","output_id":"ec29613665e7e148o0"}]}}}

Here you go.
I put instructions on the bundle, but I’ll post them here too:

The IN input starts the sequence.
The OUT input stops the sequence and starts fading Out.


Each input pauses the other one. The maximum numbers are set for the alpha.

If one input is activated while the other sequence is going, then the other timer will be reset.


There is no limit to the number of times you can activate either IN or OUT.

1 Like

Thank you i will try that

It worked! Thank you so much!

1 Like

This better have eases. With eases you just need 3 behaviors. A once, the ease, and the alpha behavior.

1 Like

Why do this?


When you can do this?:

@JUSTPLAINOP
I think you should stop using the Timer, Number, Filter method because it’s unefficient.
Sorry for kind of being off-topic btw, I’ll stop.

4 Likes

Lol, that’s making a whole ease function from scratch when there’s literally a block for it

1 Like

Yeah I used to use it until I realized what the Ease behavior actually did.

1 Like

Can the ease version go back and forth before the fading sequence is over?

I don’t specifically remember, but if it can’t you can just use 2 ease behaviors. Your version is something I used before and it was very unefficient, useless, and dumb.
Once I learned ease everything was honestly better.

2 Likes

Shrug
They both work…

1 Like

I know, but I’m just saying that the ease is more efficient. You’re free to use the Timer, Number, Filter way but I was just giving you advice you could use at a later time.

1 Like

I’m still new to ease, so, for now, I’m just going to use the other version. Anyways, we’ve been babbling off-topic(ish) on someone else’s help request. We’d better stop.

1 Like

I used to use this method before the Ease was still added and sometimes I’ll still use it only for certain scenarios when the Ease don’t quite work.

2 Likes