Ren'Py [Solved]how to over lap a screen over play move

rayminator

Engaged Member
Respected User
Sep 26, 2018
3,041
3,140
how can you put a screen this video

Code:
play movie "your_video.webm"
I know how to do it this way

Code:
image ei movie = Movie(play="your_video.webm", loop=True)
I have tried it this way and the other way around

Code:
play movie "your_video.webm"
    show screen your_screen
Code:
show screen your_screen
    play movie "your_video.webm"
I also had the screen with zorder 100

Code:
screen your_screen():

    zorder 100
but thing is nothing shows up only the video

I am using renpy 7.4.8

I know this game My cute roommate is doing it the way I want it to
 
Last edited:

79flavors

Well-Known Member
Respected User
Jun 14, 2018
1,581
2,219
Quick untested stab in the dark answer from me... but couldn't you add the video to the screen?

Something like:

Python:
image ei_movie = Movie(play="your_video.webm", loop=True)

screen your_screen:
    add ei_movie

    #blah, blah

Or even pass the name of the movie to the screen - if you want to use the same screen, with multiple movies?

Python:
screen your_screen(the_movie):
    add Movie(play="{}.webm".format(the_movie), loop=True)

    #blah, blah


show screen your_screen("your_video")

Movies are just displayables... and practically any displayable can be used within a screen.

Honestly, that may not work for a dozen reasons I can imagine... but maybe worth a quick try.
 

rayminator

Engaged Member
Respected User
Sep 26, 2018
3,041
3,140
Quick untested stab in the dark answer from me... but couldn't you add the video to the screen?

Something like:

Python:
image ei_movie = Movie(play="your_video.webm", loop=True)

screen your_screen:
    add ei_movie

    #blah, blah

Or even pass the name of the movie to the screen - if you want to use the same screen, with multiple movies?

Python:
screen your_screen(the_movie):
    add Movie(play="{}.webm".format(the_movie), loop=True)

    #blah, blah


show screen your_screen("your_video")

Movies are just displayables... and practically any displayable can be used within a screen.

Honestly, that may not work for a dozen reasons I can imagine... but maybe worth a quick try.
I guess I try that way but there will be tone os screens if I did it that way



here what inside my cute cousin code and this is what I want to try to do

Python:
label test:
    play movie "video/extra/cous_massage_fuck_ass1.webm" loop
    show movie
    $ penistimeron = True
    $ penpoint = 4
    $ n = 0.02
    $ penistimer2 =20
    $ penistimer = 20
    $ womanbar = True
    $ womanbar = 0
    $ timerjump = "cous_massage_fuck_ass_cum"
    show screen penistimer
for some reason the screen won't show up the way that did it
 

79flavors

Well-Known Member
Respected User
Jun 14, 2018
1,581
2,219
I guess I try that way but there will be tons of screens if I did it that way

IF it works, my second example would would around the need for lots of screens. I just don't know that it works.

But yeah, hopefully someone with more movie/screen experience can get it working how you originally intended.
 
  • Like
Reactions: rayminator

mickydoo

Fudged it again.
Game Developer
Jan 5, 2018
2,446
3,548
I call a screen over videos like this. Use call not show.

Python:
image fuck = Movie(play="video/fucking.webm")

label sex_scene:
    show fuck 
    call screen fuck_buttons
    
    
screen fuck_buttons:
    imagebutton:
        idle "button_hover.png"
        hover "button_idle.png"
        xalign 0.98
        yalign 0.03
        action Jump("yumi_bj2")
 
  • Like
Reactions: rayminator

rayminator

Engaged Member
Respected User
Sep 26, 2018
3,041
3,140
I call a screen over videos like this. Use call not show.

Python:
image fuck = Movie(play="video/fucking.webm")

label sex_scene:
    show fuck
    call screen fuck_buttons
   
   
screen fuck_buttons:
    imagebutton:
        idle "button_hover.png"
        hover "button_idle.png"
        xalign 0.98
        yalign 0.03
        action Jump("yumi_bj2")

this is what my screen looks like I have tried it that way before but you click to make the srceen to show up

Python:
screen penistimer(penisxalign=1.0):
    # Increase the counter when a key is pressed
    if penistimeron:
        timer 0.1 repeat True action If(penpoint < penistimer, true=SetVariable('penpoint', penpoint + n), false = [Hide('penistimer'), Jump(timerjump)])
    else:
        timer 0.1 repeat True action If(penpoint > 0, true = SetVariable('penpoint', penpoint - n), false = SetVariable('penpoint',0))

    if penistimerst:
        timer 0.1 repeat True action If(penpoint >= penistimerst, true = [Hide('penistimer'), Jump(timerjump)], false = NullAction())

    # Here display the counter the way you want


    if penisbar:
        vbar value StaticValue(penpoint, penistimer):
            align (penisxalign, 0)
            maximum (200, 500)
            left_bar "ind_empty"
            right_bar "ind_full"
            thumb None
            thumb_shadow None


    if penpoint > 17 and not timer_no_button:
        imagebutton:
            if penisxalign == 0.0:
                pos (65,29)
            else:
                pos (1137,29)
            idle "images/Buttons/penis_timer_cum_button.png"
            hover im.MatrixColor("images/Buttons/penis_timer_cum_button.png",im.matrix.brightness(0.10))
            action Hide('penistimer'), Hide('penistimer2'), Jump(timerjump)


    # Increase the counter when a key is pressed
    if penistimeron:
        timer 0.1 repeat True action If(penpoint2 < penistimer, true=SetVariable('penpoint2', penpoint2 + n), false = [Hide('penistimer'), Jump(timerjump)])
    else:
        timer 0.1 repeat True action If(penpoint2 > 0, true = SetVariable('penpoint2', penpoint2 - n), false = SetVariable('penpoint2',0))

    if penistimerst:
        timer 0.1 repeat True action If(penpoint2 >= penistimerst, true = [Hide('penistimer2'), Jump(timerjump)], false = NullAction())

    # Here display the counter the way you want



    if womanbar:
        vbar value StaticValue(penpoint2, penistimer):
                align (penisxalign, 0)
                maximum (200, 500)
                left_bar "ind_full"
                right_bar "ind_empty"
                thumb None
                thumb_shadow None
    else:
        if womanbar_stop:
            timer 0.1 repeat True action If(penpoint2_stop < 0, true = SetVariable('penpoint2_stop', penpoint2_stop + n), false = SetVariable('penpoint2_stop',15))
            vbar value StaticValue(penpoint2, penistimer):
                align (0.0, 0)
                maximum (200, 500)
                left_bar "indg_empty"
                right_bar "indg_full"
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,364
15,281
Hmmm. I see no reason for Astaros3D code to not works.

Therefore, it's perhaps an internal change in the display priorities. Try to change the zorder of your screen:

Python:
screen penistimer(penisxalign=1.0):

    zorder 10
    [...]
 
  • Like
Reactions: rayminator

rayminator

Engaged Member
Respected User
Sep 26, 2018
3,041
3,140
Hmmm. I see no reason for Astaros3D code to not works.

Therefore, it's perhaps an internal change in the display priorities. Try to change the zorder of your screen:

Python:
screen penistimer(penisxalign=1.0):

    zorder 10
    [...]
has I have stated in my post that I have tried that as well 0 to 100 and still nothing
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,364
15,281
has I have stated in my post that I have tried that as well 0 to 100 and still nothing
Oops sorry. Too much works and heat aren't really good for my brain.

Are you sure that the movie declaration are the same in Astaros3D game and your attempt ?
I don't think of a parameter that could have an impact on the way the movie is displayed, but as I said my brain isn't in good shape right now.

Since you've his code, I assume that you've also his game. Replace the "start" label by your attempt (add the needed code obviously). This will remove all external factors, like by example a change due to Ren'py evolution ; therefore it will also permit to know if it's the way you're doing it, or purely because of Ren'py.
 
  • Like
Reactions: rayminator

rayminator

Engaged Member
Respected User
Sep 26, 2018
3,041
3,140
Astaros3D in cous_massaje.rpy
Python:
play movie "video/extra/cous_massage_fuck_pussy.webm" loop
        show movie
        $ penistimeron = True
        $ penpoint = 4
        $ n = 0.02
        $ penistimer = 20
        $ womanbar_stop = True
        $ penisbar = True
        $ timerjump = "cous_massage_fuck_ass"
        show screen penistimer
Astaros3D in myscreens.rpy

Python:
screen penistimer(penisxalign=1.0):

    if penistimeron:
        timer 0.1 repeat True action If(penpoint < penistimer, true=SetVariable('penpoint', penpoint + n), false = [Hide('penistimer'), Jump(timerjump)])
    else:
        timer 0.1 repeat True action If(penpoint > 0, true = SetVariable('penpoint', penpoint - n), false = SetVariable('penpoint',0))

    if penistimerst:
        timer 0.1 repeat True action If(penpoint >= penistimerst, true = [Hide('penistimer'), Jump(timerjump)], false = NullAction())

    if penisbar:
        vbar value StaticValue(penpoint, penistimer):
            align (penisxalign, 0)
            maximum (200, 500)
            left_bar "ind_empty"
            right_bar "ind_full"
            thumb None
            thumb_shadow None

    if womanbar:
        vbar value StaticValue(penpoint, penistimer):
            align (0.0, 0)
            maximum (200, 500)
            left_bar "indg_empty"
            right_bar "indg_full"
    else:
        if womanbar_stop:
            timer 0.1 repeat True action If(penpoint_stop < 18, true = SetVariable('penpoint_stop', penpoint_stop + n), false = SetVariable('penpoint_stop',15))
            vbar value StaticValue(penpoint_stop, penistimer):
                align (0.0, 0)
                maximum (200, 500)
                left_bar "indg_empty"
                right_bar "indg_full"

    if penpoint > 10 and not timer_no_button:
        imagebutton:
            if penisxalign == 0.0:
                pos (58,29)
            else:
                pos (1777,29)
            idle "images/Buttons/penis_timer_cum_button.png"
            hover im.MatrixColor("images/Buttons/penis_timer_cum_button.png",im.matrix.brightness(0.10))
            action Hide('penistimer'), Jump(timerjump)
and mine penis.rpy
Code:
screen penistimer(penisxalign=1.0):

    if penistimeron:
        timer 0.1 repeat True action If(penpoint < penistimer, true=SetVariable('penpoint', penpoint + n), false = [Hide('penistimer'), Jump(timerjump)])
    else:
        timer 0.1 repeat True action If(penpoint > 0, true = SetVariable('penpoint', penpoint - n), false = SetVariable('penpoint',0))

    if penistimerst:
        timer 0.1 repeat True action If(penpoint >= penistimerst, true = [Hide('penistimer'), Jump(timerjump)], false = NullAction())

    if penisbar:
        vbar value StaticValue(penpoint, penistimer):
            align (penisxalign, 0)
            maximum (200, 500)
            left_bar "ind_empty"
            right_bar "ind_full"
            thumb None
            thumb_shadow None

    if womanbar:
        vbar value StaticValue(penpoint, penistimer):
            align (0.0, 0)
            maximum (200, 500)
            left_bar "indg_empty"
            right_bar "indg_full"
    else:
        if womanbar_stop:
            timer 0.1 repeat True action If(penpoint_stop < 18, true = SetVariable('penpoint_stop', penpoint_stop + n), false = SetVariable('penpoint_stop',15))
            vbar value StaticValue(penpoint_stop, penistimer):
                align (0.0, 0)
                maximum (200, 500)
                left_bar "indg_empty"
                right_bar "indg_full"

    if penpoint > 10 and not timer_no_button:
        imagebutton:
            if penisxalign == 0.0:
                pos (58,29)
            else:
                pos (1777,29)
            idle "images/Buttons/penis_timer_cum_button.png"
            hover im.MatrixColor("images/Buttons/penis_timer_cum_button.png",im.matrix.brightness(0.10))
            action Hide('penistimer'), Jump(timerjump)
mine test_code.rpy

Code:
play movie "video/extra/cous_massage_fuck_pussy.webm" loop
        show movie
        $ penistimeron = True
        $ penpoint = 4
        $ n = 0.02
        $ penistimer = 20
        $ womanbar_stop = True
        $ penisbar = True
        $ timerjump = "cuminside"
        show screen penistimer




label cuminside:
    "Cum inside me...."
exact the same code but mine is not showing nothing and I have tried start a test game even that still doesn't show up there either
 

rayminator

Engaged Member
Respected User
Sep 26, 2018
3,041
3,140
found what I was missing thanks for everyone's help

it was this code here

Python:
init:
    $ config.hw_video = False
    image movie = Movie(size=(config.screen_width, config.screen_height))