Search found 161 matches

by octacon100
Thu Aug 25, 2016 10:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Passing control to a label via hyperlink?
Replies: 5
Views: 479

Re: Passing control to a label via hyperlink?

Thanks for that, it's a really big help! Also, if anyone wants to just apply it to text in a certain screen, like the nvl screen, you can do something like this: ## Need to set up the hyperlink style first. init -1 python: style.hyperlink = Style(style.nvl_dialogue) style.hyperlink.color = "#c33" st...
by octacon100
Mon Jun 13, 2016 5:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Bar colour
Replies: 1
Views: 267

Re: Bar colour

Here's some example bar code: bar: value AnimatedValue(confidence, range=confidenceMax) xmaximum 166 ymaximum 31 left_bar Frame("GUI/fullMoraleMeter.png", 50, 0) right_bar Frame("GUI/emptyMoraleMeter.png", 50, 0) thumb None If you want to change the way a bar looks, you can do a few things: 1. Chang...
by octacon100
Mon Jun 13, 2016 5:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Best Practice way to create array of buttons?
Replies: 0
Views: 146

Best Practice way to create array of buttons?

Hi All, I've been wrestling over the weekend with creating a screen that moves or does actions based on buttons pressed, and I'm getting close to having it done, but in rare cases I'm seeing that more than one button reacts to a button being pushed. I'm trying to figure out why this could be the cas...
by octacon100
Sat Jun 04, 2016 6:01 am
Forum: Ren'Py Questions and Announcements
Topic: Seeing weird issues with canvas.line, anything better to use
Replies: 2
Views: 252

Re: Seeing weird issues with canvas.line, anything better to

Ok, made a hopefully helpful UDD for anyone who wants animated lines or just lines in general, here's the code dump and testing scripts. init python: class Line(renpy.Displayable): def __init__(self, baseColor, startPos, endPos, lineWidth=20, animatedOn=False, animatedColor=Color("000000"), baseOn=T...
by octacon100
Fri Jun 03, 2016 6:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Seeing weird issues with canvas.line, anything better to use
Replies: 2
Views: 252

Re: Seeing weird issues with canvas.line, anything better to

Ended up fixing this by flipping the start and end points around if the end x position is less than the start x position. Seems to work just as well. Might have a UDD up here if I can get around to it.
by octacon100
Fri Jun 03, 2016 1:26 am
Forum: Ren'Py Questions and Announcements
Topic: Seeing weird issues with canvas.line, anything better to use
Replies: 2
Views: 252

Seeing weird issues with canvas.line, anything better to use

Hi All, I'm trying to animate a line, and I'm seeing strange things happening with the canvas.line method. Looks like when the x end point is less than the x start point, the y start and end points get flipped around. Here's an example render method that I'm using. def render(self, width, height, st...
by octacon100
Tue Mar 01, 2016 6:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Including Google Play API Client for Python in android build
Replies: 5
Views: 976

Re: Including Google Play API Client for Python in android b

Ok, so it looks like the python api is for 3.0 only, but there is something out there that has some open source code for setting achievements with python and java autoclass. https://github.com/tito/2048/blob/master/gs_android.py Looks like it uses some Renpy "PythonActivity" class as well. Maybe thi...
by octacon100
Fri Feb 26, 2016 10:40 am
Forum: Ren'Py Questions and Announcements
Topic: Including Google Play API Client for Python in android build
Replies: 5
Views: 976

Re: Including Google Play API Client for Python in android b

I'm not sure. Looks like setting up the achievements and all that are server side, but calling the unlock() method to unlock the achievement still seems to be a client side thing: https://developers.google.com/resources/api-libraries/documentation/games/v1/python/latest/games_v1.achievements.html So...
by octacon100
Thu Feb 25, 2016 11:06 am
Forum: Ren'Py Questions and Announcements
Topic: Including Google Play API Client for Python in android build
Replies: 5
Views: 976

Including Google Play API Client for Python in android build

Anyone out there have any luck adding the Python google play client services library to their android builds? https://developers.google.com/api-client-library/python/apis/games/v1?hl=en I'm hoping I can just put the files needed into the rapt/libs folder, but I'm not sure if that will work. Anyone o...
by octacon100
Tue Feb 23, 2016 11:16 am
Forum: Ren'Py Questions and Announcements
Topic: Ways to monitor image/transformation performance?
Replies: 7
Views: 1492

Re: Ways to monitor image/transformation performance?

Another update, the phone version is now looking much better. -A couple of points I hope will help other people: - You need to predict your images a renpy statement (Like when a character says something) or two before you actually use the image. My previous prediction code tried to do a prediction a...
by octacon100
Wed Feb 10, 2016 12:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Transparent background
Replies: 2
Views: 400

Re: Transparent background

"#0000" Usually produces a transparent background for me.
by octacon100
Thu Feb 04, 2016 4:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Ways to monitor image/transformation performance?
Replies: 7
Views: 1492

Re: Ways to monitor image/transformation performance?

Ok, so here's an update. - Making your own ATL to do transitions seemed to really, really speed up my transitions. I'd recommend that if you have a lot of transitions. - Halving the size of images and using zoom 2.0 will really increase the number of images you can store in your cache. - I'm having ...
by octacon100
Wed Jan 27, 2016 2:33 pm
Forum: I am a Programmer, Director, or Other
Topic: Programmer available for small projects (Free) [open]
Replies: 8
Views: 1429

Re: Programmer available for small projects (Free) [open]

I'm open again, feel free to PM me or whatever.
by octacon100
Wed Jan 27, 2016 2:07 pm
Forum: Ren'Py Questions and Announcements
Topic: Ways to monitor image/transformation performance?
Replies: 7
Views: 1492

Re: Ways to monitor image/transformation performance?

Another thing I'm thinking will help is changing my transitions to use ATL code instead, I get the feeling it will speed things up a lot: So define moveToDefence = ComposeTransition(dissolve, before=moveoutleft, after=moveinright) becomes something like: transform moveToDefence(new_widget, old_widge...
by octacon100
Wed Jan 27, 2016 1:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Ways to monitor image/transformation performance?
Replies: 7
Views: 1492

Re: Ways to monitor image/transformation performance?

Ok, not sure if anyone is interested, but here's the results of my tweaking so far: First up, easily the biggest performance booster was changing my timer from a screen language timer that ran python code to a UDD. That wins hands down. It looks like it also reduced the amount of re-caching of image...