Better way to display a watermark?

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
tcassat
Regular
Posts: 30
Joined: Tue Oct 03, 2017 7:32 pm
Contact:

Better way to display a watermark?

#1 Post by tcassat » Wed Jan 24, 2018 7:46 am

Hello.

I need to put a watermark on the right corner of the screen (to indicate the copyright of the program I use to create the art). At the beginning of each label, I show it in the corner, with "show watermark at right" (there is a pic watermark.png in image folder). But it disappears with scene change.

Is there any smarter way to put a watermark on the "start" label, so it would stay on the screen all the time? But in a way that the player can remove it in real-time from the screen with an option?

EDIT: Following suggestions, I created a screen that shows the watermark. On the label "start", I used "show screen watermark". Now the watermark appears throughout the game, which is my first goal.

Now I have created an option in the preferences menu where the player can turn off this watermark. However, in order for it to work, the player must restart the game. Is there any way to make the watermark on / off in real time as the player chooses the option?

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Better way to display a watermark?

#2 Post by PyTom » Wed Jan 24, 2018 11:56 am

I'd suggest simply making it conditional in the screen. Something like:

Code: Select all

screen watermark():
    if persistent.watermark:
        add "watermark_image"
Something like that.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Better way to display a watermark?

#3 Post by Imperf3kt » Wed Jan 24, 2018 4:02 pm

You could add it to the interface via the quick menu. That way when someone hides the interface, they can see the art sans watermark and during normal gameplay, it'll show on screen.

However, the screenshot function could render that watermark pointless if it can be removed.

What kinda crazy license requires you to watermark your images though? Wouldn't it be more normal to put the software in the credits?
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

Post Reply

Who is online

Users browsing this forum: Google [Bot]