Search found 39 matches

by Vaendryl
Sat Jan 04, 2014 4:13 am
Forum: Ren'Py Questions and Announcements
Topic: [question] use an interpolated transform on 'hover'
Replies: 7
Views: 1164

Re: [question] use an interpolated transform on 'hover'

seems that although the idea had merit, no dice Exception: Expression u"im.MatrixColor(img,im.matrix.brightness(0.3))" is not an ATL transform, and so cannot be included in an ATL interpolation. so then I thought okay, why not brute a linear myself? transform hoverglow(img1): img1 pause(0.1) im.Matr...
by Vaendryl
Sat Jan 04, 2014 1:26 am
Forum: Ren'Py Questions and Announcements
Topic: [question] use an interpolated transform on 'hover'
Replies: 7
Views: 1164

Re: [question] use an interpolated transform on 'hover'

Transform is a displayable, so you can use your defined transform as a hover_background. sample code (not tested) init -1: #you need to define it before screen transform my_button(img): img linear .5 img init 0: screen sample_screen: button hover_background my_button(img) thanks! I'll have to go tr...
by Vaendryl
Fri Jan 03, 2014 10:42 pm
Forum: Ren'Py Cookbook
Topic: RPG Battle Engine - Alpha 7.5, downloads in first post
Replies: 274
Views: 75516

Re: RPG Battle Engine - Alpha 7.5, downloads in first post

Just wanted to say thanks for not just creating your engine but putting all the code out there. I've learned a *lot* by studying it and I still regularly look at how you get things done when I'm stumped writing my own (basic) combat engine. I did notice that there was a bug in the equip screen where...
by Vaendryl
Fri Jan 03, 2014 11:01 am
Forum: Ren'Py Questions and Announcements
Topic: [question] use an interpolated transform on 'hover'
Replies: 7
Views: 1164

Re: [question] use an interpolated transform on 'hover'

thanks for the suggestion, but imagemaps are not really an option in my particular case :)
by Vaendryl
Thu Jan 02, 2014 7:45 am
Forum: Ren'Py Questions and Announcements
Topic: [question] use an interpolated transform on 'hover'
Replies: 7
Views: 1164

[question] use an interpolated transform on 'hover'

So I got this working: imagebutton: idle im.MatrixColor('img.jpg',im.matrix.brightness(.1)) hover im.MatrixColor('img.jpg',im.matrix.brightness(0.3)) which allows me to use a single image and just control the brightness for each state, but I'd like to make it fancier make the hover effect a little m...
by Vaendryl
Sun Dec 29, 2013 6:44 pm
Forum: Ren'Py Questions and Announcements
Topic: question about where to best define classes
Replies: 2
Views: 348

question about where to best define classes

The documentation says about the 'init:' statement: The init python statement runs python code at initialization time, before the game loads. Among other things, this code can be used to define classes and functions, or to initialize styles, config variables, or persistent data. so it seems it's bes...
by Vaendryl
Thu Dec 26, 2013 10:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Unlockable routes...?
Replies: 2
Views: 556

Re: Unlockable routes...?

you can create persistent variables that are not tied to savegames or game completion. check this: http://www.renpy.org/wiki/renpy/doc/ref ... stent_Data
by Vaendryl
Thu Dec 26, 2013 10:13 pm
Forum: Ren'Py Questions and Announcements
Topic: How do you deal with persistent data?
Replies: 12
Views: 1136

Re: How do you deal with persistent data?

do you have all this code in an init block? I remember reading that any variables and such you create and store data in inside an init block do not get saved unless you actually refer to these values while the game is running. try doing something with the list that doesn't get saved during runtime (...