Using Matrixcolor
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.
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.
- orian34
- Newbie
- Posts: 10
- Joined: Tue Aug 24, 2021 3:42 am
- Github: orian34
- itch: orian34
- Discord: orian34#3442
- Contact:
Using Matrixcolor
I tried using the matrixcolor transform to change tints on displayables, but no matter what I try to write, it always gives me the "ATL statement contains two expressions in a row".
Even using the example transform from the documentation gives the same issue. I'm confused as to how it even works at this point.
Maybe I'm missing something, like it has to be placed in a particular location? Despite other transforms being fine.
Even using the example transform from the documentation gives the same issue. I'm confused as to how it even works at this point.
Maybe I'm missing something, like it has to be placed in a particular location? Despite other transforms being fine.
- Ocelot
- Eileen-Class Veteran
- Posts: 1883
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Using Matrixcolor
An example of how you are using it would be nice.
< < insert Rick Cook quote here > >
Re: Using Matrixcolor
You can do it like this:
Code: Select all
define config.gl2 = True
transform tint(color):
matrixcolor TintMatrix(color)
show eileen at tint("#ffddbb")
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
- orian34
- Newbie
- Posts: 10
- Joined: Tue Aug 24, 2021 3:42 am
- Github: orian34
- itch: orian34
- Discord: orian34#3442
- Contact:
Re: Using Matrixcolor
I tried using that, but I got the same error.
I wonder if it's because it's a new feature and the version of my build is older?
If that's why, that would explain it and the lack of info about it. (and if that's the case, is there a way to upgrade the version midway?)
I wonder if it's because it's a new feature and the version of my build is older?
Code: Select all
File "game/script/A26.rpy", line 3: ATL statement contains two expressions in a row; is one of them a misspelled property? If not, separate them with pass.
matrixcolor TintMatrix(color)
^
Ren'Py Version: Ren'Py 7.3.5.606Re: Using Matrixcolor
What do you mean, "upgrade midway"? You should be able to upgrade to any 7.4 or 7.5 version without problem, and probably should. Matrixcolor I think was new in 7.4.
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
- orian34
- Newbie
- Posts: 10
- Joined: Tue Aug 24, 2021 3:42 am
- Github: orian34
- itch: orian34
- Discord: orian34#3442
- Contact:
Re: Using Matrixcolor
I've never really updated so I don't know how to do it. I tried replacing the renpy folder in the game folder, but it just doesn't launch anymore. I tried replacing the lib files too, but then launching the game sends an error that it can't find a file in the lib.
Is there something I'm missing? There is literally no info about that, I tried googling to no avail.
Re: Using Matrixcolor
The easy way: in the Ren'py Launcher (the Renpy app you use to build your projects), right below where it says "Launch Project", has a text button "Update". Click on that, then on "Release (Ren'py 7, Python 2)".
The only-slightly less easy way:
1. Make sure your renpy projects folder is not in the renpy-sdk folder. Move it out if necessary.
2. Download the up-to-date Ren'py sdk (https://www.renpy.org/latest.html)
3. Unzip it
4. Start the Renpy launcher in the new sdk folder.
5. In Preferences (bottom left corner), tell it your projects directory.
Now test your game with the new renpy sdk. You can eventually delete the old one when you need the disk space back.
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
Re: Using Matrixcolor
A "project" is your directory full of .rpy files and images and stuff. A "build" is what you get when you click "build distributions" in the Launcher and compile all that into executable applications.
You might want to re-read this part of the docs.
https://www.renpy.org/doc/html/quicksta ... y-launcher
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
Who is online
Users browsing this forum: Bing [Bot], span4ev