Drawing in Ren'Py

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.
Message
Author
Human Bolt Diary
Regular
Posts: 94
Joined: Fri Oct 11, 2013 12:46 am
Contact:

Re: Drawing in Ren'Py

#16 Post by Human Bolt Diary » Wed Aug 22, 2018 10:27 pm

Imperf3kt wrote:
Tue Aug 21, 2018 9:13 pm
The big question is: can you draw an Eileen with it?
I got pretty close.
Attachments
freehand.png

User avatar
MaydohMaydoh
Regular
Posts: 101
Joined: Mon Jul 09, 2018 5:49 am
Projects: Fuwa Fuwa Panic
Tumblr: maydohmaydoh
Location: The Satellite of Love
Contact:

Re: Drawing in Ren'Py

#17 Post by MaydohMaydoh » Thu Aug 23, 2018 12:51 pm

Everyone should draw eileens.
eileen nya.png

User avatar
Kinmoku
Veteran
Posts: 421
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: Love IRL, Memories
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Re: Drawing in Ren'Py

#18 Post by Kinmoku » Fri Aug 24, 2018 6:15 am

Oh my God these are all amazing! I'd almost given up on the idea, but now I'll give it a go :D So cool :)

User avatar
Kinmoku
Veteran
Posts: 421
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: Love IRL, Memories
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Re: Drawing in Ren'Py

#19 Post by Kinmoku » Fri Aug 24, 2018 10:17 am

Question: How do I set the default "line_width" from 1 to 8, without having to use buttons. I'm not planning on having the choice of line thickness.

Another Question: Can you create a "Save canvas" button and use the saved drawing elsewhere in the game?

Thanks!

User avatar
MaydohMaydoh
Regular
Posts: 101
Joined: Mon Jul 09, 2018 5:49 am
Projects: Fuwa Fuwa Panic
Tumblr: maydohmaydoh
Location: The Satellite of Love
Contact:

Re: Drawing in Ren'Py

#20 Post by MaydohMaydoh » Fri Aug 24, 2018 11:09 am

If you're using Human Bolt Diary's example, in the FreehandCanvas init, there's a line_width variable. That controls the line width. If you're building from scratch you don't need line_width and can just give the width to the render directly.

Code: Select all

render.canvas().lines(self.colour, False, self.lines, self.line_width)
Just change the self.line_width with whatever width you want.

User avatar
Kinmoku
Veteran
Posts: 421
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: Love IRL, Memories
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Re: Drawing in Ren'Py

#21 Post by Kinmoku » Fri Aug 24, 2018 11:37 am

MaydohMaydoh wrote:
Fri Aug 24, 2018 11:09 am
If you're using Human Bolt Diary's example, in the FreehandCanvas init, there's a line_width variable. That controls the line width. If you're building from scratch you don't need line_width and can just give the width to the render directly.

Code: Select all

render.canvas().lines(self.colour, False, self.lines, self.line_width)
Just change the self.line_width with whatever width you want.
Ah great, thank you! I was looking all over for where to edit it. I kept getting crashes ^^;

How can I save the drawings?

User avatar
MaydohMaydoh
Regular
Posts: 101
Joined: Mon Jul 09, 2018 5:49 am
Projects: Fuwa Fuwa Panic
Tumblr: maydohmaydoh
Location: The Satellite of Love
Contact:

Re: Drawing in Ren'Py

#22 Post by MaydohMaydoh » Fri Aug 24, 2018 12:23 pm

You set screenshot crop to the size of the canvas
https://www.renpy.org/doc/html/config.h ... nshot_crop
and make a button that calls the Screenshot function

I plan to add something like that eventually.

Simple example

Code: Select all

define config.screenshot_crop = (0, 0, 500, 500)

screen canvas():
    ## drawing stuff here ##
    
    textbutton "Save" action Function(Screenshot())
I thought Screenshot was a screen action because it was capitalised but apparently it isn't and I ended up with over 200 screenshots... :roll:

User avatar
Kinmoku
Veteran
Posts: 421
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: Love IRL, Memories
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Re: Drawing in Ren'Py

#23 Post by Kinmoku » Fri Aug 24, 2018 1:03 pm

MaydohMaydoh wrote:
Fri Aug 24, 2018 12:23 pm
I thought Screenshot was a screen action because it was capitalised but apparently it isn't and I ended up with over 200 screenshots...
Haha! Good to know.

Thanks for the help, anyway. I'm going to try this out properly next week and get it working! I'm so excited I can do my idea now, hehe! :mrgreen:

User avatar
Andredron
Veteran
Posts: 336
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Drawing in Ren'Py

#24 Post by Andredron » Fri Aug 31, 2018 4:23 pm

cool! a lot of ideas arose:

Mini game - paint the sketch

draw on the school chalk board

color and draw your character, draw your game

in rpg draw your coat of arms, and a whole bunch of options!
I know, I'm writing terribly in English.

I'm writing a Renpy textbook (in Russian). https://yadi.sk/d/ZX_DonP63USRru Update 22.06.18

Translating to Russian language

Honest Critique

Post Reply

Who is online

Users browsing this forum: vilarialight