Search found 18 matches

by Ormgair
Wed Jan 28, 2015 4:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Viewport size
Replies: 1
Views: 1009

Viewport size

Hello all! So,I made a scrollbar for text using the code from this topic http://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=27143 Here is the code: screen say: default side_image = None default two_window = False if not two_window: window: id "window" has viewport draggable True mous...
by Ormgair
Thu Jan 22, 2015 11:30 am
Forum: Ren'Py Questions and Announcements
Topic: Show and hide image when button is clicked [SOLVED]
Replies: 4
Views: 4351

Re: Show and hide image when button is clicked

Oh,timer...yes,it works,thanks a lot!
by Ormgair
Tue Jan 20, 2015 8:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Show and hide image when button is clicked [SOLVED]
Replies: 4
Views: 4351

Re: Show and hide image when button is clicked

"It doesn't work" is an odd statement without providing the code or project that did not work. What your are describing is best done through a screen variable, transforms, transitions and maybe a showif statement or if/else + use statement. It can also be done using lower forms of display...
by Ormgair
Tue Jan 20, 2015 4:30 pm
Forum: Ren'Py Questions and Announcements
Topic: Show and hide image when button is clicked [SOLVED]
Replies: 4
Views: 4351

Show and hide image when button is clicked [SOLVED]

Hello everyone! I am trying to make a pop-up image,which is controlled with button. For example, i want a pop-up image in main menu,made a button (textbutton,imagebutton or using imagemap,that doesn't matter) and when the button is clicked, appears the image (with transitions),then,after some time,t...
by Ormgair
Mon Jan 12, 2015 5:13 pm
Forum: Ren'Py Questions and Announcements
Topic: Inventory list [SOLVED]
Replies: 1
Views: 533

Inventory list [SOLVED]

Hi everyone! I am trying to make an inventory for my novel in the form of list. I watched this instruction http://www.renpy.org/wiki/renpy/doc/cookbook/Simple_Onscreen_Inventory and this topic http://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=17166 and here is my code (in script.rpy): init py...
by Ormgair
Mon Jan 12, 2015 2:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Save/Loading Screen help
Replies: 9
Views: 1261

Re: Save/Loading Screen help

Try this: in script.rpy: $name="Player's name here" #here is the coded part of game,where the player choose a name #"name" is a variable in which the player's name stored in screens.rpy: screen load_save_slot: $ file_text = "% 2s. %s\n%s" % ( FileSlotName(number, 4), Fi...
by Ormgair
Mon Jan 12, 2015 9:18 am
Forum: Ren'Py Questions and Announcements
Topic: Save/Loading Screen help
Replies: 9
Views: 1261

Re: Save/Loading Screen help

So,here is my code: screen save: tag menu imagemap: ground "Images/cabinsscr.jpg" hover "Images/cabinsscr_hover.jpg" cache False hotspot (630, 105, 150, 50) action Return() hotspot (630, 175, 150, 50) action ShowMenu("preferences") hotspot (100, 15, 200, 50) action Show...
by Ormgair
Sun Jan 11, 2015 8:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Save/Loading Screen help
Replies: 9
Views: 1261

Re: Save/Loading Screen help

Do you try to check indentation? Your code must be approximately similar to this one: imagemap: ground "FILE NAME HERE" idle "FILE NAME HERE" hover "FILE NAME HERE" cache False hotspot (#,#,#,#) clicked FileSave(1): use load_save_slot (number=1) hotspot (#,#,#,#) clicke...
by Ormgair
Mon Jan 05, 2015 1:08 pm
Forum: Ren'Py Questions and Announcements
Topic: Health indicator problem [SOLVED]
Replies: 2
Views: 452

Re: Health indicator problem

All three are exactly the same. Generally accepted syntax is: $ health -= 20 You don't need to declare fixed, simple text will do. Health should be declared in label start and not in the init or it will reset every time you launch or reboot the game as in: label start: $ health = 100 It's been poin...
by Ormgair
Mon Jan 05, 2015 10:24 am
Forum: Ren'Py Questions and Announcements
Topic: Health indicator problem [SOLVED]
Replies: 2
Views: 452

Health indicator problem [SOLVED]

Hello everyone! I'm trying to add health indicator in my game,here is my code: in screens.rpy screen health_screen: fixed: text "Health:[health]%" xpos 1 ypos 46 in script.rpy init: $ health=100 And here i want to decrease health: $ health -=20 But when i began to test this moment,the heal...
by Ormgair
Sat Jan 03, 2015 4:56 pm
Forum: Ren'Py Questions and Announcements
Topic: Preferences menu with imagemap [SOLVED]
Replies: 4
Views: 1033

Re: Preferences menu with imagemap

To get to music volume in percent: $ mvol = _preferences.volumes["music"] $ mvol = int(round(mvol * 100)) text "[mvol]%" Same thing for sound except: $ mvol = _preferences.volumes["sfx"] Window/Fullscreen: _preferences.fullscreen will return True/False. I assume you ca...
by Ormgair
Sat Jan 03, 2015 12:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Preferences menu with imagemap [SOLVED]
Replies: 4
Views: 1033

Re: Preferences menu with imagemap

I would check out Mugen's Imagebutton GUI sample here: http://studiomugenjohncel.wordpress.com/2013/07/31/renpy-imagebutton-gui-sample-now-available-for-downloading/ I recommend using imagebuttons and not imagemaps. They are easier and more flexible (they can be animated). You can check the code in...
by Ormgair
Fri Jan 02, 2015 8:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Music playing from splash to mainmenu?
Replies: 5
Views: 1263

Re: Music playing from splash to mainmenu?

Not sure, but try this label splashscreen: scene bg black with Pause(1) show splash1 with fade with Pause(1) show splash2 with Pause(1) show splash3 with Pause(3) label start: play music "shosholoza.mp3" fadein 1.0 #here is your splashscreen stop music #the moment when you need to stop mus...
by Ormgair
Fri Jan 02, 2015 7:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Preferences menu with imagemap [SOLVED]
Replies: 4
Views: 1033

Preferences menu with imagemap [SOLVED]

Hello everyone! I worked on the preferences menu using imagemap and i have some questions. I suppose that i could find the answers by reading a tutorial,but unfortunately my technical English is not well. First of all, how to change the color of activated options button? For example,if the game wind...
by Ormgair
Thu Jan 01, 2015 1:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Save/Load screen using imagemap [SOLVED]
Replies: 2
Views: 925

Re: Save/Load screen using imagemap

PyTom wrote:You should be good. The thumbnail sizes are set on save, not load - so if you load and save again, you'll get correct thumbnails.
Thanks a lot! :)