Hoping to add video links throughout the game

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
InvertMouse
Regular
Posts: 95
Joined: Sat May 31, 2014 3:41 am
Completed: Unhack
Organization: InvertMouse
Location: Sydney, Australia
Contact:

Hoping to add video links throughout the game

#1 Post by InvertMouse » Fri Jul 17, 2015 6:27 pm

Hello there :). I am hoping to develop a game with a feature similar to that of Go Go Nippon. As you read through the story, once in a while, there will be a button that appears, and when you click on it, it will open your browser and take you to a YouTube video.

So, for instance, perhaps something like:

'"All right, let's go," she said.'

'And with that, the plane took off.'

When that second line shows up, I want a button to appear, and when you click the button, it will go to a YouTube video of some plane take off footage.

Is such a feature possible? I would love to have some help on this. Thank you so much :)!
Image

User avatar
Zetsubou
Miko-Class Veteran
Posts: 513
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: Hoping to add video links throughout the game

#2 Post by Zetsubou » Fri Jul 17, 2015 7:22 pm

You could do this by defining a screen, then showing and hiding it as you want the link to appear.
eg.

Code: Select all

#screens.rpy
screen plane_taking_off:
    xpos 25
    ypos 25
    textbutton "Youtube Video" action OpenURL("https://youtube.com/whatever")

#script.rpy
label script:
    '"All right, let\'s go," she said.'
    show screen plane_taking_off
    'And with that, the plane took off.'
    hide screen plane_taking_off
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

Image

User avatar
SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Hoping to add video links throughout the game

#3 Post by SundownKid » Fri Jul 17, 2015 7:42 pm

Or you could just take the footage and play it inside the game with the movie function?

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Hoping to add video links throughout the game

#4 Post by trooper6 » Fri Jul 17, 2015 7:51 pm

SundownKid wrote:Or you could just take the footage and play it inside the game with the movie function?
I recommend taking about SundownKid's suggestion. Not everyone has consistent internet access, they may want to download the game and then play offline. And since you are using videos that belong to you (you are, right?) then you can just include the videos in the game.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
InvertMouse
Regular
Posts: 95
Joined: Sat May 31, 2014 3:41 am
Completed: Unhack
Organization: InvertMouse
Location: Sydney, Australia
Contact:

Re: Hoping to add video links throughout the game

#5 Post by InvertMouse » Sat Jul 18, 2015 9:03 am

Thank you for the responses everyone :)!

Yeah, I do think having the videos embedded into the game would be better, and they will indeed be footage recorded by me. In games like Go Go Nippon and Shan Gui, I noticed they choose to link to photos from Wikipedia etc. It makes me wonder if things are more lenient if you link out to a video instead of including the film data in your game. The area is a bit hard to define. In another example, during the Sleeping Dogs live action trailer, the camera shows some bank logos for a few seconds as it pans across the city. Is that breaching copyright of some sort? Happy to hear some advice regarding this.

Thank you :).
Image

User avatar
SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Hoping to add video links throughout the game

#6 Post by SundownKid » Sat Jul 18, 2015 11:32 am

InvertMouse wrote:Thank you for the responses everyone :)!

Yeah, I do think having the videos embedded into the game would be better, and they will indeed be footage recorded by me. In games like Go Go Nippon and Shan Gui, I noticed they choose to link to photos from Wikipedia etc. It makes me wonder if things are more lenient if you link out to a video instead of including the film data in your game. The area is a bit hard to define. In another example, during the Sleeping Dogs live action trailer, the camera shows some bank logos for a few seconds as it pans across the city. Is that breaching copyright of some sort? Happy to hear some advice regarding this.

Thank you :).
I wouldn't be concerned about it. The only thing you should be concerned about is if you are making a clear attempt to disparage a certain brand, like for example, making an evil corporation with the exact name of a certain company in real life. In that case companies have the right to issue a cease and desist, otherwise, they don't have the right at all even if you make the main character eat a McDonalds hamburger.

As for the copyright status of photos and videos, maybe they didn't include them because they weren't licensed for commercial use? Though it seems as though it should be easy to find another one that -is-.

User avatar
InvertMouse
Regular
Posts: 95
Joined: Sat May 31, 2014 3:41 am
Completed: Unhack
Organization: InvertMouse
Location: Sydney, Australia
Contact:

Re: Hoping to add video links throughout the game

#7 Post by InvertMouse » Sat Jul 18, 2015 5:05 pm

Thanks for the response Sundownkid :). Cool, I will definitely give it some thought, then. This is a game I am planning to charge money for, so I thought commercial projects might be more sensitive. But yeah, I'm not making Call of Duty or anything :lol:, and I did get permission from a few places I plan to shoot at. Thanks :).
Image

Post Reply

Who is online

Users browsing this forum: Ocelot