Wallpaper Engine

Wallpaper Engine

データを表示:
Fade in/ Fade out swap pictures
So i was trying to put 5 images into an Wallpaper, i don't really know if i missed something but there seem that it's not really possible, managed only to get it done with Pulse effect which can't do the job because it doesn't have a way to set a specific time to fade in/out, i tried to search for a way to do the transitions but couldn't find either.

The plan was to have 5 layers of images and they fade away one after another until reaching the last one then they first one fades in again and the others following it behind the layers, managed to get the layers but the timing and transitions didn't quite work, any recommendations in that case?
< >
1-6 / 6 のコメントを表示
(笑) (禁止済) 2020年10月5日 15時03分 
Rookwie の投稿を引用:
So i was trying to put 5 images into an Wallpaper, i don't really know if i missed something but there seem that it's not really possible, managed only to get it done with Pulse effect which can't do the job because it doesn't have a way to set a specific time to fade in/out, i tried to search for a way to do the transitions but couldn't find either.

The plan was to have 5 layers of images and they fade away one after another until reaching the last one then they first one fades in again and the others following it behind the layers, managed to get the layers but the timing and transitions didn't quite work, any recommendations in that case?

I believe you will need to write a script to do that. Here's an example that a friend wrote for me.

//'use strict'; var timeSinceFade = 0.0; var fadingDirection = -1; var fading = false; export function update(value) { let dt = engine.frametime; timeSinceFade += dt; if (fading) { thisLayer.alpha += (dt * fadingDirection); if(thisLayer.alpha <= 0 || thisLayer.alpha >= 1) { fading = false; fadingDirection = thisLayer.alpha > 0.5 ? -1 : 1; timeSinceFade = 0.0; } } if (timeSinceFade > 5) { fading = true; } }

You should be able to adjust this script to achieve what you are looking for I believe. So, if you bind this script to your first image layer then it will fade out after 5 seconds and fade back in after 5 more seconds and repeat indefinitely. I'm not certain how to best write a script, so the images will likely end up overlapping each other at the wrong times eventually. Hope this helps somewhat.

**Also, I believe you should bind your script to the opacity effect instead of the pulse effect. I've never tried using the pulse effect though, so I'm not sure.
最近の変更は(笑)が行いました; 2020年10月5日 15時05分
(笑) (禁止済) 2020年10月5日 15時16分 
Rookwie の投稿を引用:
So i was trying to put 5 images into an Wallpaper, i don't really know if i missed something but there seem that it's not really possible, managed only to get it done with Pulse effect which can't do the job because it doesn't have a way to set a specific time to fade in/out, i tried to search for a way to do the transitions but couldn't find either.

The plan was to have 5 layers of images and they fade away one after another until reaching the last one then they first one fades in again and the others following it behind the layers, managed to get the layers but the timing and transitions didn't quite work, any recommendations in that case?

Or better yet, you could probably try this: https://steamcommunity.com/sharedfiles/filedetails/?id=2243793766

I wasn't aware that someone recently made a script for this, so I'll be using it in the future myself. You need to change the script's layer name from "Solid" to whatever your image layer is called.
I'll try it, thx :kalove:
(笑) (禁止済) 2020年10月5日 15時23分 
Rookwie の投稿を引用:
I'll try it, thx :kalove:

No problem, good luck! :luv:
First one was actually almost good, only thing is that you can't adjust fade in/out separately, once you adjust the time in the script, it'll affect both fade in and fade out which makes it hard to work with multiple layers.

Second one still didn't figure out where exactly can i see it to add it XD
(笑) (禁止済) 2020年10月5日 15時34分 
Rookwie の投稿を引用:
First one was actually almost good, only thing is that you can't adjust fade in/out separately, once you adjust the time in the script, it'll affect both fade in and fade out which makes it hard to work with multiple layers.

Second one still didn't figure out where exactly can i see it to add it XD

Yeah, the second one is definitely more useful. You can use the script in the editor after you have subscribed to it by going to the "Workshop" button beside the "Snippet" button, and going to "Replace with Workshop script."
< >
1-6 / 6 のコメントを表示
ページ毎: 1530 50

投稿日: 2020年10月5日 14時53分
投稿数: 6