Buttons on movies?

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.
Post Reply
Message
Author
User avatar
Ryu-Gi
Regular
Posts: 38
Joined: Fri Apr 05, 2013 9:26 pm
Contact:

Buttons on movies?

#1 Post by Ryu-Gi » Mon May 18, 2015 3:03 am

One of the things I wanted to do for my game is a Quicktime Event. I have some 3D modeling/animation skills and I was considering making some animated cutscenes containing these.

Let's say for instance in my story, you're chasing a bad guy, and he's throwing stuff to try to stop you. As the object he throws at you gets close, time slows down and you'll be prompted to chose how to react, either by smacking the object aside, or dodging, or if you fail to make a choice on time, getting hit in the face. Choosing the right choice allows the video to continue, while choosing the wrong one stops the current video and plays a different one of the player getting hit in the face.

Is there a code in RenPy to have buttons appear while a video is playing like that?

And, on a related note, how about background music going while the video is playing, can that be done, too?

EDIT: Also is it possible to make a video unskippable unless the player hits a button, like on the lower corner of the screen? I want to avoid instances where the player might accidnetley skip a cutscene that they wanted to watch.
Feeling much better lately!

Now working on: "Nekomimi in Boots"
Finished Games: "A Date with Markiplier: The Game"

philat
Eileen-Class Veteran
Posts: 1853
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Buttons on movies?

#2 Post by philat » Mon May 18, 2015 3:36 pm

http://www.renpy.org/doc/html/movie.htm ... splayables

You can play music on the music channel while playing the video on the movie channel. You can use modal True on your screen with buttons and show it to stop players from being able to interact with the say screen. This does mean you need to time everything that shows with pauses, but since you want QTEs, that's a given anyway.

Post Reply

Who is online

Users browsing this forum: No registered users