A downloadable tutorial

Download NowName your own price

This is a supplementary tutorial for the LayeredImage function, introduced in Ren'Py 7. Be sure to read the documentation provided on the official site!

Augustina Sprite courtesy of dejinyucu

StatusReleased
CategoryOther
Rating
Rated 4.9 out of 5 stars
(28 total ratings)
Authortofurocks
TagsRen'Py, sourcecode, Tutorial

Download

Download NowName your own price

Click download now to get access to the following files:

LayeredImage Tutorial.zip 6 MB

Comments

Log in with itch.io to leave a comment.

(1 edit)

Not sure why but can't get it to work. I get an error when I try to launch it in Ren'py.


While running game code:

  File "game/example_code.rpy", line 556, in script

    init python hide:

  File "game/example_code.rpy", line 556, in script

    init python hide:

  File "game/example_code.rpy", line 556, in <module>

    init python hide:

  File "game/example_code.rpy", line 570, in _execute_python_hide

    f = file(fn, "r")

NameError: name 'file' is not defined

Thank you for reporting this error, we'll do our best to investigate the cause as soon as we can. Would you be able to tell us which version of Ren'Py you're using and what OS you're running on?

In the meantime, you can still open the source files in your code editor and use the code in there to assist you with your projects.

(3 edits)

Sorry for catching your reply so late!

Ren'Py version: 8.0.3

OS: Windows 10 Home, 22HZ, build 19045.2251

Please don't worry about it unless it's going to give trouble for others!

(I personally ended up not needing to learn the layered image approach. I'm stronger in graphic processing than Ren'Py coding and my project size will likely end up pretty small)

And I have been looking at your codes! love how organized your files are, they have been great help taking preventative measures from code folder chaos.

Hey, I found a fix. It has something to do with python backslash.

So, all you need to do is this: 

fn = fn.replace("\\","/")

This was such a big help in figuring out complex layered images for my games, thank you so much. It only recently occured to me that I can also use the IF condition feature to handle various different outfits combined with arm poses (different sleeves for each outfit), in theory. Gonna have to give this a try next! <3

Hey, can you do a custom hover map similar to something like this:

 

(+5)

This tutorial is a life-saver-- as I am only recently doing more outfits/poses with my games I'm VERY LUCKY that Ren'py came out with this code and EVEN MORE LUCKY!!! That you made such an awesome and straight forward tutorial. It's super hard for me to learn without a teacher and I JUST APPRECIATE THIS SO MUCH!!! THANK YOU!!!