Slideshow of pictures within the same scene?
Hunnenkoenig
Member Posts: 1,173
I can't figure out, how to make a "slideshow" of 6 pictures within the same scene.
I tried to make rules with attributes and such, based on the fade in/out tutorial, but I can't get it work.
I don't want to add 6 scenes to the project, so it has to work somehow within the same scene.
I tried to fade out the first picture and made a rule, when alpha = 0 change to pic2 and set alpah to 1, but then my second picture just blinks, because it is traped in an infinite loop.
I tried to make rules with attributes and such, based on the fade in/out tutorial, but I can't get it work.
I don't want to add 6 scenes to the project, so it has to work somehow within the same scene.
I tried to fade out the first picture and made a rule, when alpha = 0 change to pic2 and set alpah to 1, but then my second picture just blinks, because it is traped in an infinite loop.
Comments
Or, you can layer all six images as individual Actors, then use a Timer to fade out each picture. May take a little longer to load the Scene, but it's easiest.
I figured it out! Yay!
I added the first actor (picture) and after 3 seconds I run a "fade out" rule and if alpha = 0, a new actor is spawned.
The new, second actor has alpha 0 and has a "fade in" rule
When it reaches alpha 1 the "fade in" attribute is set to false
If "fade in" is false, after 3 seconds a "fade out" starts
When alpha reaches 0, the third actor is spawned with the same rules like the second one
And so on until the last picture is loaded. Then it starts a new scene, namely the level.
I might make a tutorial with pictures, but not today :-)