I made sure to check and couldn't find a question on it
Hey guys,
New to all of this. Was able to find the way to play a video that takes up the full screen
$ renpy.movie_cutscene("family guy.webm")
but I'm not able to figure out how to make it just a portion of the screen and where to place it. This section of code on it was
image launch = Movie(play="oa4_launch.webm",pos=(10,10),anchor=(0,0))
I don't know the size of that original video it played but it played in the top left corner and full screen, so I'm safe to assume that resizing can be done.
I'm just looking for how to resize and reposition videos
any help would be greatly appreciated.
Resizing videos
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
- Regular
- Posts: 33
- Joined: Sun Jul 08, 2018 8:49 am
- Contact:
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: Resizing videos
Define an image holding the movieSettle for Pocky wrote: ↑Sun Jul 08, 2018 8:54 am ---
I'm just looking for how to resize and reposition videos
---
Code: Select all
image familyGuy = Movie(play="family guy.webm")
Code: Select all
show familyGuy:
xpos 100
ypos 100
zoom 0.5
-
- Regular
- Posts: 33
- Joined: Sun Jul 08, 2018 8:49 am
- Contact:
Re: Resizing videos
It just jumps to the end. Does it possibly have to do that
(Here's the bit right before the add-on code)
-------------
label continue:
g "ye-p"
g "Hey I didn't even get your name yet!"
python:
name = renpy.input("What's your name?")
name = name.strip() or "Kee"
image familyGuy = Movie(play="familyguy.webm")
show familyGuy:
xpos 100
ypos 100
zoom 0.5
------------
sorry if I'm doing something wrong or wrong indentation
(Here's the bit right before the add-on code)
-------------
label continue:
g "ye-p"
g "Hey I didn't even get your name yet!"
python:
name = renpy.input("What's your name?")
name = name.strip() or "Kee"
image familyGuy = Movie(play="familyguy.webm")
show familyGuy:
xpos 100
ypos 100
zoom 0.5
------------
sorry if I'm doing something wrong or wrong indentation
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: Resizing videos
Settle for Pocky wrote: ↑Sun Jul 08, 2018 5:05 pm It just jumps to the end. Does it possibly have to do that
(Here's the bit right before the add-on code)
-------------
label continue:
g "ye-p"
g "Hey I didn't even get your name yet!"
python:
name = renpy.input("What's your name?")
name = name.strip() or "Kee"
image familyGuy = Movie(play="familyguy.webm")
show familyGuy:
xpos 100
ypos 100
zoom 0.5
------------
sorry if I'm doing something wrong or wrong indentation
To show the indentation use the code-tags ( <|> button in the tool bar)
I don't think that is the problem though. If it was something wrong on that front you should not be able to play the game at all.
My best guess at this point is that there is something in the code coming after the show image command that interferes with the playing of the video and stops it so it just keep showing the same frame.
To test that hypothesis you can put in a pause after the show image command
Code: Select all
show familyGuy:
xpos 100
ypos 100
zoom 0.5
pause 30
-
- Regular
- Posts: 33
- Joined: Sun Jul 08, 2018 8:49 am
- Contact:
Re: Resizing videos
Got it.
(changed the name of movie to simply familyguy without any spaces or capitals. Nothing to do with it, just wanted to let you know on why the name is different)
image familyguy = Movie(play="familyguy.webm")
show familyguy:
xpos 100
ypos 100
zoom 0.5
pause 30
You'll go in the special thanks part of the game for this. Let's cross our fingers it becomes popular
(changed the name of movie to simply familyguy without any spaces or capitals. Nothing to do with it, just wanted to let you know on why the name is different)
image familyguy = Movie(play="familyguy.webm")
show familyguy:
xpos 100
ypos 100
zoom 0.5
pause 30
You'll go in the special thanks part of the game for this. Let's cross our fingers it becomes popular
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot], Ocelot