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.
-
Geckos
- Veteran
- Posts: 471
- Joined: Fri Aug 17, 2012 8:33 am
- Completed: Brilliant Shadows, Perceptions of the Dead, The Phantom Icecream Truck
- Projects: Embers of Magic, Pale Spectrum, Perceptions of the Dead
- Organization: Ithaqua Labs
- Tumblr: geckosart
- Deviantart: sitaart
-
Contact:
#1
Post
by Geckos » Sat Feb 17, 2018 7:43 am
Tried to get this code working
Code: Select all
$ renpy.movie_cutscene("movies/jc_phones_null_short.webm")
The screen freezes until the length of the movie is over, and then it resumes the game as normal.
I can get movies to work with
Code: Select all
image jc_phones_null_short = Movie(play="movies/jc_phones_null_short.webm", loops=0, delay=None)
But I can't get this to stop infinitely looping.
Not sure what to do! Any help is appreciated.
Thanks!
-
Geckos
- Veteran
- Posts: 471
- Joined: Fri Aug 17, 2012 8:33 am
- Completed: Brilliant Shadows, Perceptions of the Dead, The Phantom Icecream Truck
- Projects: Embers of Magic, Pale Spectrum, Perceptions of the Dead
- Organization: Ithaqua Labs
- Tumblr: geckosart
- Deviantart: sitaart
-
Contact:
#3
Post
by Geckos » Sat Feb 17, 2018 7:53 pm
I've been all over the renpy documentation and relevant troubleshooting threads I could find, with no luck~!
-
Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
-
Contact:
#4
Post
by Imperf3kt » Sat Feb 17, 2018 8:49 pm
Geckos wrote: ↑Sat Feb 17, 2018 7:43 am
I can get movies to work with
Code: Select all
image jc_phones_null_short = Movie(play="movies/jc_phones_null_short.webm", loops=0, delay=None)
But I can't get this to stop infinitely looping.
loops=-1 is for indefinite looping, loops=0 should not loop at all. Maybe try leaving it out altogether?
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
-
Geckos
- Veteran
- Posts: 471
- Joined: Fri Aug 17, 2012 8:33 am
- Completed: Brilliant Shadows, Perceptions of the Dead, The Phantom Icecream Truck
- Projects: Embers of Magic, Pale Spectrum, Perceptions of the Dead
- Organization: Ithaqua Labs
- Tumblr: geckosart
- Deviantart: sitaart
-
Contact:
#6
Post
by Geckos » Sat Feb 17, 2018 11:15 pm
Did some more testing, problem seems to be with the type of ren'py game I created (an older one that doesn't use the new gui). Or at least with the version of the script I'm working with now, which uses some older code.
Movie plays with that code in a new build. Will have to think about what to do! Not quite ready to troubleshoot an entire project so until then I might just use my previous method to show movies and not worry about the "play movie" or "cutscene" commands. Thank you though!
Users browsing this forum: Bing [Bot]