Search found 88 matches

by Eliont
Fri Jan 06, 2012 11:51 am
Forum: Ren'Py Questions and Announcements
Topic: Remember adjustment value
Replies: 2
Views: 563

Remember adjustment value

Please, how to remember viewport adjustment value, need set it to previous value when return to this screen from another. Default it set to 0, but i want to set it to position what been before jump. side "c l": viewport id "vp": draggable True mousewheel True $rows = int(math.ceil(divide(len(categor...
by Eliont
Sat Aug 27, 2011 4:48 am
Forum: Ren'Py Questions and Announcements
Topic: Code doesn't work
Replies: 16
Views: 1422

Re: Code doesn't work

Where you place this code?

Code: Select all

# The game starts here.
label start:
    show cursorPosition at bottom
    show screen exitButton
    # call newgame
    scene bg main 
    with fade
    pause 5.0
Works.
May be pause too long?
by Eliont
Sat Aug 27, 2011 4:45 am
Forum: Ren'Py Questions and Announcements
Topic: Drop-down menu with animation
Replies: 0
Views: 308

Drop-down menu with animation

Hello. i make dropdown menu using screen language, it works, but it possible to add move animation to show/hide elements like Accordeon navigation container in Flash? Menu code: screen Profile: vbox align(0.05,0.1): for type in tool.typeslist:#parameters group vbox: #text "{size=+5}{color=##4169E0}П...
by Eliont
Fri Mar 04, 2011 7:34 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with function as action
Replies: 3
Views: 338

Re: Problem with function as action

You are welcome anytime.
by Eliont
Fri Mar 04, 2011 5:55 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with function as action
Replies: 3
Views: 338

Re: Problem with function as action

I suppose you have env (and env.turnEnd) == NONE at this moment.

Code: Select all

textbutton "Assign" action env.turnEnd() clicked env.turnEnd()
Button inactive as

Code: Select all

textbutton "Assign" action None
And when you try end this turn - game crashes becouse
'NoneType' object is not callable
by Eliont
Fri Mar 04, 2011 5:22 am
Forum: Ren'Py Questions and Announcements
Topic: Someone who could assist
Replies: 5
Views: 467

Re: Someone who could assist

Ping-pong minigame included in tutorial game.
You may create what you want using Python and RenPy as interface.
by Eliont
Fri Mar 04, 2011 2:50 am
Forum: Ren'Py Questions and Announcements
Topic: screen say + atl transform -- replace(ed) events don't work
Replies: 1
Views: 365

screen say + atl transform -- replace(ed) events don't work

"on show" and "on hide" events work when scene changed, but in this situation: e "text 1" e "text 2" e "text 3 textbox instantly disappears instead of easeout 0.5 alpha 0 xanchor 0.7 . Anybody knows why it is and how to make it works? transform alpha_down: on show: alpha 0 xanchor 0.2 easein 0.5 alp...
by Eliont
Sat Feb 12, 2011 2:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Draw something over the screen
Replies: 2
Views: 335

Re: Draw something over the screen

Thanks, i did it. renpy.show("icon",what=Image("hero.png"),at_list=[Move((xs,ys,0.5,0.5),(xf,yf,0.5,0.5),0.5)],layer='screens',zorder=9) renpy.pause(0.5) renpy.hide("icon",layer="screens") But why sprite before move blinking in up-left corner? And sometimes moving not from xstart/ystart to xfininsh/...
by Eliont
Sat Feb 12, 2011 11:12 am
Forum: Ren'Py Questions and Announcements
Topic: Draw something over the screen
Replies: 2
Views: 335

Draw something over the screen

I have screen-overlay, but when i draw sprites, he shown under the screen.
Please, how to draw something over/above the screen?
by Eliont
Tue Feb 08, 2011 10:44 pm
Forum: Development of Ren'Py
Topic: Ren'Py 6.12.0 Pre-Released
Replies: 73
Views: 8472

Re: Ren'Py 6.12.0 Pre-Released

config.overlay_functions.append(stats) def stats(): if current: ui.remove('control_panel') ui.tag('control_panel') #drav unit control panel... if u.id is active: #if currently selected unit - active unit u.menu.draw() #draw unit menu #... Buttons: class BattleActionMenu(object): def __init__(self,f...
by Eliont
Tue Feb 08, 2011 2:10 pm
Forum: Development of Ren'Py
Topic: Ren'Py 6.12.0 Pre-Released
Replies: 73
Views: 8472

Re: Ren'Py 6.12.0 Pre-Released

Please, how interact with overlays in this version?
In Ren'Py 6.10.2 ("Fixing a Hole") it works normal, but now click to overlay buttons have no effect in spite of buttons looks active.
Perhaps ui.interact can't receive ui.returns value from buttons?
by Eliont
Sun Jan 30, 2011 3:57 am
Forum: Development of Ren'Py
Topic: Ren'Py 6.12.0 Pre-Released
Replies: 73
Views: 8472

Re: Ren'Py 6.12.0 Pre-Released

Please, return utf-8 support.

Code: Select all

sys.setdefaultencoding('utf-8')

now has no effect - game crash with "UnicodeEncodeError".

Also in previous vesion (6.11.2) does't work interaction with overlays - button shown, but ui.interact can't receive return value from button in overlay.
by Eliont
Fri Jan 28, 2011 2:30 pm
Forum: Ren'Py Questions and Announcements
Topic: [answered] How to make date appear onscreen
Replies: 10
Views: 939

Re: Make a new stat window

Alex, big thanks, your example exactly what i need in my game. Yuuki, this is full example (partially from my game): Clicking on the button... http://dl.dropbox.com/u/11931230/Images/Screenshots/Screenshot-349.jpg will lead you to status screen... http://dl.dropbox.com/u/11931230/Images/Screenshots/...
by Eliont
Fri Jan 28, 2011 10:45 am
Forum: Ren'Py Questions and Announcements
Topic: [answered] How to make date appear onscreen
Replies: 10
Views: 939

Re: Make a new stat window

If i understand right... You can do about that: Button create new context: ui.textbutton("{=bt_menu_txt}Stats",style = 'bt_menu_button',clicked=ui.callsinnewcontext("battle_menu_equipment")) Stats screen: label battle_menu_equipment: while true: ui.frame(background=Frame(im.AlphaMask("battle_gfx/ui/...
by Eliont
Fri Jan 28, 2011 9:16 am
Forum: Ren'Py Questions and Announcements
Topic: Cannot start an interaction in the middle of an interaction
Replies: 0
Views: 336

Cannot start an interaction in the middle of an interaction

This code display list of units (method of class Timeline): def overlay(self): if self.enable: for i,event in enumerate(self.list): if unit.has_key(event.data): img = im.Scale(unit[event.data].face['norm'],36,38) uiat(self.step*event.pos,round(config.screen_height-self.height*0.5),-0.5,0.5) ui.image...