Search found 69 matches

by Tsapas
Wed Jun 11, 2014 9:53 am
Forum: Ren'Py Questions and Announcements
Topic: Imagebutton behavior when clicked
Replies: 11
Views: 3084

Re: Imagebutton behavior when clicked

So, yeah. Anyone else got any ideas? You just need to detect if the mousebutton is held down and change the hover image of the buttons if it is, but 'detect if the mousebutton is held down' appears to be the trickiest part of the exercise. Apparently, as per this post, Ren'Py does not support a pre...
by Tsapas
Thu Jan 30, 2014 9:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Hyperlink passing parameters to labels
Replies: 2
Views: 558

Re: Hyperlink passing parameters to labels

That is because the hyperlink treats everything set as "a" (the target) as text. So in the case of omitting the parameter it checks for a label named "test_label" which exists and everything works fine. On the other hand, there is no label named "test_label(5)" so it's expected to throw an exception...
by Tsapas
Wed Jan 29, 2014 11:45 am
Forum: Ren'Py Questions and Announcements
Topic: Changing Mixer Volume (Sfx/Music) In-Game
Replies: 4
Views: 582

Re: Changing Mixer Volume (Sfx/Music) In-Game

Ah right, because you mentioned mute as an option in the first post.

To dampen it try

Code: Select all

$ _preferences.set_volume("music", 0.5)
by Tsapas
Wed Jan 29, 2014 9:56 am
Forum: Ren'Py Questions and Announcements
Topic: Changing Mixer Volume (Sfx/Music) In-Game
Replies: 4
Views: 582

Re: Changing Mixer Volume (Sfx/Music) In-Game

Check this thread about how you can mute/unmute the music at certain points in your script.
by Tsapas
Tue Jan 28, 2014 1:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Solved: Web Updater error: update file was not downloaded
Replies: 5
Views: 813

Re: Web Updater error: The update file was not downloaded

Tried this now and it fails as well. Log says it failed to get the zsync file. failed on url http://dreamgategames.com/emma/emma_updates/Emma the Maid-1.1-all.zsync could not read control file from URL http://dreamgategames.com/emma/emma_updates/Emma the Maid-1.1-all.zsync Traceback (most recent cal...
by Tsapas
Tue Jan 28, 2014 10:17 am
Forum: Ren'Py Questions and Announcements
Topic: Question regarding the Script and Text Adjustments.
Replies: 7
Views: 978

Re: Question regarding the Script and Text Adjustments.

1) First off, I was wondering about this... when creating the story of your Visual Novel do you have to include all of the codes, all of the events, everything into one script which is the one we get defaultly when we start out the engine? Or is it possible to pan out the story in mutliple scripts ...
by Tsapas
Sun Jan 26, 2014 7:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Positioning Sprites: Custom Positions
Replies: 9
Views: 7324

Re: Positioning Sprites: Custom Positions

Sure you can define your own, like this.

Code: Select all

init:
    $ screen_center = Position(xpos=0.5, ypos=0.5)

label start:
    show image at screen_center with dissolve
The above will place the image in the center of the screen and show it with a dissolve transition.
by Tsapas
Fri Jan 24, 2014 3:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Password software protection?
Replies: 3
Views: 758

Re: Password software protection?

It is possible indeed, ranging from the most basic password protection to more elaborate solutions. The most basic would be something like this: label start: if not persistent.unlocked: $ sn = renpy.input("Please input your serial number", length=20) if sn == "1111-1111-whatever": $ persistent.unloc...
by Tsapas
Fri Jan 24, 2014 1:09 pm
Forum: Ren'Py Questions and Announcements
Topic: "unsopported operand += 1"
Replies: 5
Views: 1951

Re: "unsopported operand += 1"

Unsupported operand means the operand '+=' is not used in python and therefore renpy. I believe you got that wrong ;). "+=" works perfectly fine. Anima's solution is correct, the error is thrown because Ren'Py tried to add an int and an undefined variable (which in case of persistent ones I believe...
by Tsapas
Fri Jan 24, 2014 10:05 am
Forum: Ren'Py Questions and Announcements
Topic: Using pie chart as interface
Replies: 6
Views: 1013

Re: Using pie chart as interface

If the imagebutton has the "focus_mask = True" argument, no it should not. Only opaque pixels trigger those states.
by Tsapas
Fri Jan 24, 2014 9:25 am
Forum: Ren'Py Questions and Announcements
Topic: Using pie chart as interface
Replies: 6
Views: 1013

Re: Using pie chart as interface

One way would be to use the alpha True property in your imagemap, that does not focus transparent areas in your imagemap even if they are inside a hotspot, but for a pie chart hotspots would overlap probably, so don't know if this would work. Or else, you could use an imagebutton for each chart slic...
by Tsapas
Thu Jan 23, 2014 11:22 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to show a sprite's image later on? [SOLVED]
Replies: 5
Views: 557

Re: Is it possible to show a sprite's image later on?

If by sprite you mean the side image, I believe it can be done with ConditionSwitch. E.g. define pov = Character("[povname]", color=#FF0000, show_side_image=ConditionSwitch( "dress_up == False", "false.png", "dress_up == True", "true.png")) You just need to declare a dress_up variable that is False ...
by Tsapas
Wed Jan 22, 2014 12:29 pm
Forum: Ren'Py Questions and Announcements
Topic: RevertableList Object?
Replies: 4
Views: 1115

Re: RevertableList Object?

In this line:

Code: Select all

ui.image("%s_fight.png" % self.map.label, xalign=.5)
What exactly are you referring to with self.map.label here? The map's name?
By default the map is a list so it does not have any "label" attribute (and I didn't see it be defined in another way in your files on the other thread).
by Tsapas
Wed Jan 22, 2014 12:12 pm
Forum: Ren'Py Questions and Announcements
Topic: UnitEngine and Overlay displayables
Replies: 5
Views: 882

Re: UnitEngine and Overlay displayables

I've been trying this on and off to no avail since you posted it. Was hard to nail down, partly because the Ren'Py version it's based on is old and partly because the whole UnitEngine/TileEngine is a spaghetti, making initial class instantiation with dummy arguments a nightmare. Anyway, the first so...
by Tsapas
Tue Jan 14, 2014 7:09 am
Forum: Ren'Py Questions and Announcements
Topic: Character image selection?
Replies: 5
Views: 824

Re: Character image selection?

I believe you are referring to side images? You can try this:

Code: Select all

$ pov = Character('Player', color="#F8BA87",show_side=ConditionSwitch("povGender == Male", "pov_male.png","povGender == Female", "pov_female.png"))