Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
-
nananame
- Regular
- Posts: 72
- Joined: Fri Oct 13, 2017 1:40 pm
-
Contact:
#1
Post
by nananame » Sun Aug 28, 2022 1:37 am
I have a movie sprite defined:
Code: Select all
image eileen = Movie(play="eileen_movie.webm", start_image="images/eillen1.png", image="images/eillen2.png")
This works as expected when I use it.
However, how could I force Renpy to not play this but show the image instead?
For example, if I am using it in the game I want it to play (so I simply show it). But if I use it in a menu screen I want it not to play, just display the image.
Example:
Code: Select all
screen test():
hbox:
for image in listimages:
add image ######the listimages contains images (duh!); some are regular images, but some are movie sprites. I don't want the movie sprites to play in this context
-
Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
-
Contact:
#2
Post
by Imperf3kt » Sun Aug 28, 2022 5:08 pm
A movie is a movie. It is not an image.
If you need to use an image, use an image.
There are many tools which can extract the first frame of a video file for you and save it as an image.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot]