Search found 17 matches

by RLinZ
Fri Oct 05, 2018 7:07 pm
Forum: Ren'Py Cookbook
Topic: [CODE] Glossary Screen Implementation
Replies: 14
Views: 1246

Re: [CODE] Glossary Screen Implementation

You could use a set data structure instead of a list, as set does not allow for duplicates. Like list.append(item), use set.append(item). Also, as a note, unlike list which is ordered by the time an item is added, set is un-ordered. Also with set, please do not clear out the data with $ persistent.w...
by RLinZ
Tue Oct 02, 2018 9:34 pm
Forum: Ren'Py Cookbook
Topic: [CODE] Glossary Screen Implementation
Replies: 14
Views: 1246

Re: [CODE] Glossary Screen Implementation

You are most welcome and thank you for sharing your inputs on this ;)
by RLinZ
Sun Sep 30, 2018 11:27 pm
Forum: Ren'Py Cookbook
Topic: [CODE] Glossary Screen Implementation
Replies: 14
Views: 1246

Re: [CODE] Glossary Screen Implementation

You are doing the right thing in script.rpy . Replace screens.rpy with the following (yes, we are still modifying screen glossary() instead of defining another screen) screen glossary(): text "Glossary" size 40 xalign 0.5 ypos 20 hbox spacing 200: viewport: xpos 50 ypos 100 xsize 300 ysize 500 child...
by RLinZ
Sun Sep 30, 2018 6:53 pm
Forum: Ren'Py Cookbook
Topic: [CODE] Glossary Screen Implementation
Replies: 14
Views: 1246

Re: [CODE] Glossary Screen Implementation

Hi there, thanks for the comment. Your English is great so no worries~ You could make use of persistent data: - script $ persistent.unlocked = [] # empty word list label start: [b]The word "Cook" = ???'[/b] $ persistent.unlocked.append('Cook') mimi "You Learned the word 'Cook'" jump next_label - scr...
by RLinZ
Fri Sep 28, 2018 8:02 am
Forum: Ren'Py Cookbook
Topic: [CODE] Glossary Screen Implementation
Replies: 14
Views: 1246

[CODE] Glossary Screen Implementation

I came across the need to implement a glossary screen for my current project and would like to share the code here in case someone could adapt and reuse it for their project :D The idea is to store terms and their definitions inside a dictionary and have a screen to scroll through the terms and disp...
by RLinZ
Wed Sep 19, 2018 2:43 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Screen: Fix different-sized idle/hover/selected button image to a uniform size
Replies: 5
Views: 208

Re: [Question] Screen: Fix different-sized idle/hover/selected button image to a uniform size

The best solution is to make all images the same size, and make sure the images are centered, with the smaller image having more blank canvas (alpha) This will still cause some issues, so I suggest instead of alpha, use the larger image as an alpha mask - shading the area covered on the smaller ima...
by RLinZ
Sun Sep 16, 2018 10:41 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Screen: Fix different-sized idle/hover/selected button image to a uniform size
Replies: 5
Views: 208

[Solved] Screen: Fix different-sized idle/hover/selected button image to a uniform size

Hello there! I am using imagebuttons for my screen and I have button_hover.png larger than button_idle.png and button_selected.png , as I would like the button to grow in size when hovered. However when I put multiple such buttons in a hbox with spacing, the entire line of buttons are affected by th...
by RLinZ
Sat Sep 15, 2018 9:27 pm
Forum: Ren'Py Cookbook
Topic: [Re-usable Code] Simple Interactive Chess Engine in Ren'Py
Replies: 9
Views: 1449

Re: [Re-usable Code] Simple Interactive Chess Engine in Ren'Py

As always, thanks for the insight! The code has been properly fixed now. Found an issue with how you are using images. (Or rather, PyTom found it) There is an unnecessary period in lines 215 and 219 of chessgui.rpy which causes issues when building distributions (specifically Android versions) This ...
by RLinZ
Tue Aug 14, 2018 9:38 am
Forum: Creative Commons
Topic: 8 Free Female Sprites - (CC BY-SA 3.0)
Replies: 8
Views: 2369

Re: 8 Free Female Sprites - (CC BY-SA 3.0)

@SilverSea Thanks for the feedback! I will keep variety in mind as I make new sprites!
by RLinZ
Sun Jul 29, 2018 11:50 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Blinking with LiveComposite for multiple expressions of multiple characters
Replies: 3
Views: 211

Re: [Question] Blinking with LiveComposite for multiple expressions of multiple characters

Thank you so much! This is super helpful!

May I incorporate this code snippet in my project? Credits and attributions will be included!
by RLinZ
Sat Jul 28, 2018 7:31 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Blinking with LiveComposite for multiple expressions of multiple characters
Replies: 3
Views: 211

[Solved] Blinking with LiveComposite for multiple expressions of multiple characters

Hello! I have a question on creating blinking characters with LiveComposite(). I'd like to find a way not to hard-code LiveComposite as well as blinking ATL for every expression of every character. I am using layered images - the base being a faceless image, and the blinking eyes with ATL. I underst...
by RLinZ
Tue Jul 24, 2018 9:45 pm
Forum: I am a Programmer, Director, or Other
Topic: [Temporarily Closed] Volunteer Programmer Experienced in Ren'Py and Python | Makeshift Sprite Artist | Translator
Replies: 1
Views: 266

[Temporarily Closed] Volunteer Programmer Experienced in Ren'Py and Python | Makeshift Sprite Artist | Translator

Updates as of 07/26/18 Temporarily marking this as closed as I start working with awesome teams that reached out to me via Discord. I will be back after seeing those projects to completion and thank you for all the messages! --- Hello there! College CS student / Programming Enthusiastic here hoping...
by RLinZ
Sat Jul 21, 2018 11:26 am
Forum: Ren'Py Cookbook
Topic: [Re-usable Code] Simple Interactive Chess Engine in Ren'Py
Replies: 9
Views: 1449

Re: [Re-usable Code] Simple Interactive Chess Engine in Ren'Py

My sincere apologies and thank you so much for pointing this out! I left some code for testing purpose but forgot to take them out... The code has been properly fixed and please do give it another try if you wish so! Sorry for any inconvenience caused!
by RLinZ
Fri Jul 20, 2018 8:29 pm
Forum: Creative Commons
Topic: 8 Free Female Sprites - (CC BY-SA 3.0)
Replies: 8
Views: 2369

8 Free Female Sprites - (CC BY-SA 3.0)

Hello all! I have uploaded 8 sets of free-to-use girl sprites, with genres ranging from school-uniform to tribe-sorcerer-ish fantasy. Each sprite has 8 - 10 expressions. All are under the license Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) , free for commercial or non-commercial projects. ---...
by RLinZ
Fri Jul 20, 2018 12:09 pm
Forum: Ren'Py Cookbook
Topic: [Re-usable Code] Simple Interactive Chess Engine in Ren'Py
Replies: 9
Views: 1449

Re: [Re-usable Code] Simple Interactive Chess Engine in Ren'Py

Thanks for the replies! I would like to know if people will be interested if I make a tutorial on creator-defined Displayables in Ren'Py based on this project? Any thought is appreciated!