Search found 753 matches
- Thu Mar 31, 2022 10:07 pm
- Forum: Ren'Py Questions and Announcements
- Topic: how to show character at a certain time
- Replies: 9
- Views: 375
Re: how to show character at a certain time
now I'm thinking of doing something else instead of using timseofday and pose and avatar or whatever I have tested it out with my old code that I have I like the code that you gave me have something like this I'm going to try to code by myself for now NPC.create("cindy", nice_name="Cindy", schedule=...
- Thu Mar 31, 2022 12:50 pm
- Forum: Ren'Py Questions and Announcements
- Topic: how to show character at a certain time
- Replies: 9
- Views: 375
Re: how to show character at a certain time
I haven't change anything in the character_screen default location = "Ryan" default pose = ["Pose1", "pose2"] default daytime = ["Morning", "Afternoon", "Evening", "Night"] """ npc_schedule is a dict { (time: int, location: str,): (npc_name: str, lbt: str} } npcs is a dict { npc_name: NPC } used to ...
- Thu Mar 31, 2022 11:37 am
- Forum: Ren'Py Questions and Announcements
- Topic: how to show character at a certain time
- Replies: 9
- Views: 375
Re: how to show character at a certain time
This is relatively easy. First of all, you need to prepare format string: self.fmt_str = "avatar/{name}/{name}_{{location}}_{{timeofday}}_{{pose}}.png".format(name=name) Doubling braces escapes them, so they would not be considered part of replacement this time. Then you change avatar function to t...
- Thu Mar 31, 2022 12:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: Gallery questions
- Replies: 11
- Views: 685
Re: Gallery questions
a replay gallery is different then a image gallery
here is a gallery code that looks like you have used
https://www.renpy.org/doc/html/rooms.html#image-gallery
and is a replay gallery
https://www.renpy.org/doc/html/rooms.html#replay
here is a gallery code that looks like you have used
https://www.renpy.org/doc/html/rooms.html#image-gallery
and is a replay gallery
https://www.renpy.org/doc/html/rooms.html#replay
- Wed Mar 30, 2022 12:47 pm
- Forum: Ren'Py Questions and Announcements
- Topic: how to show character at a certain time
- Replies: 9
- Views: 375
Re: [Solved]how to show character at a certain time
one last question on this I have tried to put something like pose inside of the code that you have gave me error or no image at all so what I'm trying to have is anna_Library_afternoon_pose1.png anna_Library_afternoon_pose2.png anna_Library_afternoon_pose3.png anna_Library_evening_pose1.png anna_Lib...
- Tue Mar 29, 2022 1:28 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Adding a vertical scroll bar (vbar) to image gallery
- Replies: 5
- Views: 365
Re: Adding a vertical scroll bar (vbar) to image gallery
my answer was a example only you have to adjust somethings for yourself read some information on vpgrid/viewport here https://www.renpy.org/doc/html/screens.html#vpgrid https://www.renpy.org/doc/html/screens.html#viewport but for something like a gallery I would use viewport and grid here is suggest...
- Tue Mar 29, 2022 8:20 am
- Forum: Ren'Py Questions and Announcements
- Topic: Is there any way to show notifications on autosaving?
- Replies: 1
- Views: 246
Re: Is there any way to show notifications on autosaving?
you can use
example: (Don't know it this will work)
Code: Select all
renpy.notify()Code: Select all
$ renpy.notify("Game has been saved in slot " + persistent.saveSlot + " in auto saves.")- Mon Mar 28, 2022 11:53 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Adding a vertical scroll bar (vbar) to image gallery
- Replies: 5
- Views: 365
Re: Adding a vertical scroll bar (vbar) to image gallery
you can use scrollbars "vertical" screen show_image_gallery(): modal True if Lightbox_image != "": $ lb_image = im.Scale ("images/" + Lightbox_image, 1280, 720) imagebutton: idle lb_image hover lb_image xalign 0.5 yalign 0.5 focus_mask True action SetVariable ("Lightbox_image", "") else: frame: xpos...
- Mon Mar 28, 2022 11:56 am
- Forum: Ren'Py Questions and Announcements
- Topic: how to show character at a certain time
- Replies: 9
- Views: 375
- Mon Mar 28, 2022 8:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: Renpy web Warning: write error
- Replies: 3
- Views: 314
Re: Renpy web Warning: write error
you have to ask Newgrounds or let them know about it cause it might on their end
cause it a mysql database error you have no access to it so you have to contact them
cause it a mysql database error you have no access to it so you have to contact them
- Mon Mar 28, 2022 7:35 am
- Forum: Ren'Py Questions and Announcements
- Topic: how to show character at a certain time
- Replies: 9
- Views: 375
how to show character at a certain time
how to show character at a certain time of day at a certain locations here is my code I have try using if/else statement by no go class.rpy init python: class PLACE(object): def __init__(self, name, unLocked): self.name = name self.unLocked = unLocked Rooms = [] Rooms.append(PLACE("Ryan", True)) Roo...
- Sat Mar 26, 2022 12:51 am
- Forum: Ren'Py Questions and Announcements
- Topic: Displaying text lines in a screen one at a time
- Replies: 4
- Views: 270
Re: Displaying text lines in a screen one at a time
you can put them into their own text or \n for the next line
Code: Select all
text "[caster] has rolled poorly. \nThe pot goes to [player_name]."Code: Select all
text "[caster] has rolled poorly."
text "The pot goes to [player_name]."- Thu Mar 24, 2022 4:27 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Game Developer Training
- Replies: 6
- Views: 423
Re: Game Developer Training
he forgot to default the InteractButtons/Locations/NPCS after I default them it stopped the double vision
default InteractButtons = []
default Locations = []
default NPCS = []
default InteractButtons = []
default Locations = []
default NPCS = []
- Wed Mar 23, 2022 6:26 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Game Developer Training
- Replies: 6
- Views: 423
Re: Game Developer Training
is there another way to put or call for i,q in enumerate(NPCS): for i,q in enumerate(InteractButtons): cause I got it down to bare-bone in the class right now I only have the UIButtons class like so init python: class UIButton(object): def __init__ (self, name, niceName, func): self.name = name self...
- Wed Mar 23, 2022 8:37 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Game Developer Training
- Replies: 6
- Views: 423
Re: Game Developer Training
okay I have broken the code down both NPCS and UIButtons do the same thing I have tried it with just the UIButtons it show double of the buttons I have tried it with just the NPCS it show double of the character I have tried it with both UIButtons/NPCS it show double of the character and buttons so ...