Wallpaper Engine

Wallpaper Engine

View Stats:
How to create wallpaper with click and play next video layer
Hi,

I would liket to ask if it is possible to create a wallpaper that could play next video layer with after a click.

Example if i have 3 videos, i want the video to change from video 1 to video 2 after a click, and from video 2 to video 3 with another click. Then video 3 to video 1 again with another click.
< >
Showing 1-3 of 3 comments
The author of this thread has indicated that this post answers the original topic.
Capt.Luke Jul 30, 2024 @ 2:16am 
you can do it with a script
scrript AI can help you with that
https://chatgpt.com/g/g-ftolxSZgh-scenescript-wallpaper-engine-assistant
Last edited by Capt.Luke; Jul 30, 2024 @ 2:16am
Vyna Jul 31, 2024 @ 1:04am 
toggle individual layer, first made a "solid" layer as a dummy (then enlarge to cover area you wish to click, turn opacity down to 0)

For "Solid" layer place this layer script
'use strict'; var toggle = 1; // every click add 1 value, toggle add up to 3 then reset to 1 // example: if you want 4 layers cycle, change value >3 to >4 and -= 3 to -= 4 export function cursorUp() { toggle += 1; while (toggle > 3) { toggle -= 3; } } // add more layer if needed export function init() { shared.layer1 = 0; shared.layer2 = 0; shared.layer3 = 0; } // condition export function update() { if (toggle === 0 || toggle === 1) { shared.layer1 = true; shared.layer2 = false; shared.layer3 = false; } else if (toggle === 2) { shared.layer1 = false; shared.layer2 = true; shared.layer3 = false; } else if (toggle === 3) { shared.layer1 = false; shared.layer2 = false; shared.layer3 = true; } }
(this is a long repeated way, AI can help shorten this kind of repeated code)

For "Video Layer 1" place this layer script
'use strict'; export function update() { return shared.layer1; }

then do the same for "Video Layer 2" use shared.layer2 and "Video Layer 3" use shared.layer3 and so on (add more as you like).
Lifeisnevertamed Jul 31, 2024 @ 3:19am 
Chatgpt has created the script for me! thanks alot!
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Jul 29, 2024 @ 8:47pm
Posts: 3