Search found 205 matches

by iichan_lolbot
Sun Jan 04, 2009 9:40 am
Forum: Ren'Py Questions and Announcements
Topic: Non-trivial F1 handler and related things (solved)
Replies: 4
Views: 542

Non-trivial F1 handler and related things (solved)

I'm using non-trivial F1 handler (a dialogue with a character in a new context). Here are some troubles I had implementing it, maybe somebody would find this text usefull: Trouble 1 (solved). Several presses = several help screens. F1 can be pressed several times with showing several help dialogues ...
by iichan_lolbot
Sat Jan 03, 2009 9:01 am
Forum: Ren'Py Questions and Announcements
Topic: Removing decimal points(solved)
Replies: 2
Views: 496

Re: Removing decimal points

Code: Select all

    float = 10.81
    text = "%d" % float
text now contains 10 (not 11).
//1.0...1.99 ->1

If you want the values to be rounded properly, add 0.5 to them:

Code: Select all

    float = 10.81
    text = "%d" % (float+0.5)
text now contains 11.
//0.50...1.49 ->1
by iichan_lolbot
Wed Dec 31, 2008 9:47 am
Forum: Ren'Py Questions and Announcements
Topic: music queues (fixed)
Replies: 1
Views: 555

music queues (fixed)

Our composer found a strange thing related with music queues. We wanted to make a track that would have an intro part and looped main part. So, we wrote: $ renpy.music.play (pla_intro, loop=False) $ renpy.music.queue (pla_play, loop=True) BUT, this code started looped pla_play at once, without pla_i...
by iichan_lolbot
Tue Dec 30, 2008 4:31 pm
Forum: Ren'Py Questions and Announcements
Topic: onMouseOver (done)
Replies: 3
Views: 547

Re: onMouseOver

THX! It works!!!!!!!!!!!!111one
The strangiest thing is that I've done absolutely the same things twice before, each time it didn't work properly. Maybe I forgot to call renpy.restart_interaction() or smth...

PS Sorry for bothering
by iichan_lolbot
Tue Dec 30, 2008 4:22 pm
Forum: Ren'Py Questions and Announcements
Topic: Multiple RENPY_SCALE_FACTOR troubles (all fixed)
Replies: 4
Views: 682

Re: Multiple RENPY_SCALE_FACTOR troubles

Maybe, at least 1 (one) pixel would be anough too.
Well, lots of thanks for all the fixes, I will wait for a new version to be released then.
by iichan_lolbot
Tue Dec 30, 2008 3:40 pm
Forum: Ren'Py Questions and Announcements
Topic: onMouseOver (done)
Replies: 3
Views: 547

Re: onMouseOver

Okay, I'l try it. Also I think of publishing WidgetBar class to Cookbook, when it ready.
by iichan_lolbot
Tue Dec 30, 2008 3:28 pm
Forum: Ren'Py Questions and Announcements
Topic: onMouseOver (done)
Replies: 3
Views: 547

onMouseOver (done)

I've managed to create an imagebutton toolbar at the top of the window, and it can be shown/hidden by a keyboard button or another imagebutton. But still I want to implement further improvements. Main of them is showing/hiding toolbar depending on the mouse position. Is it possible to create smth (a...
by iichan_lolbot
Tue Dec 30, 2008 3:00 pm
Forum: Ren'Py Questions and Announcements
Topic: "if"s inside an "if"s? Please, I need help.
Replies: 2
Views: 358

Re: "if"s inside an "if"s? Please, I need help.

What OS do you use? Looks like the line break symbols are not read properly.
Maybe you wrote it on Mac/Linux and now trying to run on Win without script changes?

PS Just a guess, I'm not sure...
by iichan_lolbot
Tue Dec 30, 2008 2:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Multiple RENPY_SCALE_FACTOR troubles (all fixed)
Replies: 4
Views: 682

Re: Multiple RENPY_SCALE_FACTOR troubles

Thanks for a quick reply.
Problem-related sample is in zip attached.
by iichan_lolbot
Tue Dec 30, 2008 10:22 am
Forum: Ren'Py Questions and Announcements
Topic: Multiple RENPY_SCALE_FACTOR troubles (all fixed)
Replies: 4
Views: 682

Multiple RENPY_SCALE_FACTOR troubles (all fixed)

Maybe I'm doing something very-very wrong, but here are some bugs I experienced using RENPY_SCALE_FACTOR: 0. If my game is (for example) 1024x768, then screenshots are always saved in 1024x768, indifferent to RENPY_SCALE_FACTOR value. So the picture is resized to a little one, to be drawn on screen,...