Search found 58 matches
- Fri Apr 22, 2016 11:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: Bug with docstrings within init python
- Replies: 0
- Views: 351
Bug with docstrings within init python
When using docstrings in functions defined inside init python modules, docstrings marked with three single quotes cause crash with unexpected indent, while docstrings with triple double quotes don't. This piece of code crashes the game (note the function called 'deck'): init -3 python: import pygame...
- Sun Apr 17, 2016 11:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Are image atlases available in renpy?
- Replies: 2
- Views: 664
Re: Are image atlases available in renpy?
Thank you PyTom. I guess I'll work from there.
- Fri Apr 15, 2016 12:07 am
- Forum: Ren'Py Questions and Announcements
- Topic: Are image atlases available in renpy?
- Replies: 2
- Views: 664
Are image atlases available in renpy?
Does renpy have any support for image atlases? Our current project has a lot of little UI elements that are now stored as separate files, and the images directory is clogged. Files like 'images/Button{0}state{1}style{2}.jpg' are all over the place and it'd be nice to tidy up a bit. What I want is to...
- Mon Apr 11, 2016 11:24 am
- Forum: Creator Discussion
- Topic: Image is to blurry when I shrink it
- Replies: 8
- Views: 1161
Re: Image is to blurry when I shrink it
That's actually a good idea. Unless you are skilled in Photoshop/Gimp/whatever mac people use, cleaning up the resizing artifacts may take immense time.
- Wed Jan 27, 2016 3:53 am
- Forum: Ren'Py Questions and Announcements
- Topic: NVL autoclear feature
- Replies: 2
- Views: 543
Re: NVL autoclear feature
roxygen, where exactly do you put this autoclear thing? Is it renpy.say or you define the custom Character class for a narrator? I'd really like to see the actual code, if possible. The following is not a technical point, but still. We have considered such a feature for our project, which is an IF g...
- Wed Jan 27, 2016 3:29 am
- Forum: Ren'Py Questions and Announcements
- Topic: A wild button appeared! [SOLVED]
- Replies: 3
- Views: 405
Re: A wild button appeared! [SOLVED]
Just the issue I had recently. The problem is that when the transform starts, your button has no coordinates. If my memory serves, style properties are ignored if the transform is supplied: they are expected to be defined inside transform, not in SL statement. And if the displayable has no user-defi...
- Sat Jan 23, 2016 7:32 am
- Forum: Ren'Py Questions and Announcements
- Topic: Moving displayable upon action
- Replies: 4
- Views: 1021
Re: Moving displayable upon action
Thank you, I've got it working. There are a few details I had to adjust (like throw Hide actions to timer screen and fiddling with coordinate variables), but overall idea is great.
- Thu Jan 21, 2016 12:01 am
- Forum: Creator Discussion
- Topic: Thoughts on "Game Overs"
- Replies: 21
- Views: 3720
Re: Thoughts on "Game Overs"
I think it has to do with how "game-y" the game is. Doubleplusgood point. Game over isn't just a bad ending, it's "you cannot play the game well enough, try harder" kind of thing. Since regular VN doesn't really have that much gameplay, it cannot punish players for the lack of s...
- Sat Jan 16, 2016 8:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: Moving displayable upon action
- Replies: 4
- Views: 1021
Re: Moving displayable upon action
Thanks philat, I got this working (although I had to write a transform that takes into account both old and new coordinates), but stumbled into the next problem. My code (in Travel action) hides map screen after ship coordinates have been updated, so the transform is actually shown only when the scr...
- Mon Jan 11, 2016 11:43 am
- Forum: Ren'Py Questions and Announcements
- Topic: Moving displayable upon action
- Replies: 4
- Views: 1021
Moving displayable upon action
I have this issue with the imagemap: it is literally a map, and has a number of visitable points. The one you are currently at is marked by a little ship icon, and clicking on any adjacent point is updating some game data and moving the icon. However, the ship is moved instantaneously, while I'd lik...
- Sun Jan 10, 2016 10:14 am
- Forum: Ren'Py Questions and Announcements
- Topic: python callbacks for saving and loading
- Replies: 17
- Views: 2850
Re: python callbacks for saving and loading
Yeah, matter of fact I do just init displayables whenever I need (after label start), wrap them in transforms and do not even directly touch render outside the rendering methods. I fixed the issue and this is how I think I done it (in case it's useful for someone). I think the problem is not in thos...
- Sun Jan 10, 2016 9:35 am
- Forum: Ren'Py Questions and Announcements
- Topic: Right click mouse button?
- Replies: 7
- Views: 2020
Re: Right click mouse button?
'mousebutton_3' is always a right button, don't worry about that. For mac people just make sure whatever key is usually expected to do your thing (Esc, I guess?) to actually do it.
- Fri Jan 08, 2016 1:51 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to Get Mouse Position?
- Replies: 2
- Views: 1029
Re: How to Get Mouse Position?
The easiest approach for your creator-defined displayables will be probably like this: put all the drawing into render (and make sure all objects on screen know their position, probably by wrapping them in transforms). Then put all the gameplay logic into event() method, which gets called with event...
- Fri Jan 08, 2016 1:32 am
- Forum: Ren'Py Questions and Announcements
- Topic: python callbacks for saving and loading
- Replies: 17
- Views: 2850
Re: python callbacks for saving and loading
Just adding another use case where explicit callback may be necessary. In our game the player ends up with a bunch of procedurally generated objects in his inventory. Of course, those are instances of a class that contains object data, displayable among them. Those objects are integral to the game, ...
- Mon Dec 21, 2015 9:39 am
- Forum: Creator Discussion
- Topic: I just wrote source for blurring image with Pure Python.
- Replies: 2
- Views: 1705
Re: I just wrote source for blurring image with Pure Python.
http://s003.radikal.ru/i201/1208/c1/d0e7323f980a.jpg It says: "This is how you can turn a loaf of bread into trolley bus with these simple tools. Now, why would you want to?" Not meaning to disrespect your hacker attitude, but do you really need to blur images in real time? The module pro...