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.
###############################
image films = "a[number]"
image a001 = Movie(play="film001.webm")
image a002 = Movie(play="film002.webm")
...
image a998 = Movie(play="film998.webm")
image a999= Movie(play="film999.webm")
################################
label Event:
$ number = renpy.random.randint(1,999)
scene films with fade
"that's OK! No Caton!"
menu:
"start to jam":
"When the option appears, the video screen starts to jam"
It was smooth at first, so I did nearly a thousand?
Now there is a problem. Every time you encounter [menu option], the screen will start to jam
How can I solve this problem?
Because my native language is not English, I use translation software to express this problem as much as possible.
You're probably hitting the limit of the RAM installed in your computer. Have a look at the task manager while running your game and watch for how much free memory is available and how much of that your game is using.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Imperf3kt wrote: ↑Mon Jan 24, 2022 4:31 am
You're probably hitting the limit of the RAM installed in your computer. Have a look at the task manager while running your game and watch for how much free memory is available and how much of that your game is using.
My memory stick is 32G and the manager shows that it only takes up less than 400MB
Will it be related to my use of too many 【imageXXX = MovieXXX】?
After I commented out half of the 【imageXXX = MovieXXX】, the test found that it was much smoother.....
Or the reason for using random numbers every time?