Search found 13 matches
- Mon Mar 26, 2018 2:42 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to put a button on top of an image
- Replies: 3
- Views: 594
Re: How to put a button on top of an image
I thought I figured out everything I needed, but I guess not... I have an image that pops up when I press one button (it's for an in-game journal), and the other button isn't showing up like it's supposed to. Is there something I need to add to this? style usual_style: xalign 0 yalign 0 spacing 5 s...
- Mon Mar 26, 2018 1:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Math calculation problem. Float is rounding as if int?
- Replies: 5
- Views: 994
Re: Math calculation problem. Float is rounding as if int?
Hello! I'm running an in-game clock that runs in the background on the basic idea of (min/60)%24 #min short for minute. The problem is, this does not display anything other than ints. So if I have 1080 minutes, this translates to 18 or 6:00pm. 1140 mintes is 19 or 7pm. However anything in between 1...
- Sun Mar 25, 2018 3:04 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Screen Trouble
- Replies: 4
- Views: 324
Re: Screen Trouble
Can you change the last line to: action Show("hbox_add_notebook", buttons=buttons) that works in my code -- see if that works. edit: NullAction() does the same as Null -- just tested it (learn something new everyday ;) ), and as long as there is a space as an indent, Ren'Py doesn't seem to...
- Sun Mar 25, 2018 2:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Screen Trouble
- Replies: 4
- Views: 324
Re: Screen Trouble
Is your code indented? (Python / Ren'Py is very specific about this [x4 spaces is the norm for me / don't use Tab character unless your text editor is configured to convert Tabs to spaces]) Like: screen hbox_add_notebook (buttons): hbox: add "notebook.png": xalign 0.5 yalign 0.5 spacing 1 ...
- Sun Mar 25, 2018 2:00 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Check for file existence, need example
- Replies: 7
- Views: 3201
Re: Check for file existence, need example
image bg = Solid('#000') label start: scene bg python: ## test if the file path exists, setting the 'secret_route_unlocked' object if file exists if renpy.exists('name_here.txt'): secret_route_unlocked = True else: secret_route_unlocked = False ## display result if secret_route_unlocked == True: &q...
- Sun Mar 25, 2018 9:07 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Check for file existence, need example
- Replies: 7
- Views: 3201
Re: Check for file existence, need example
Just my two cents: Add a 'name_here.txt' file to your '/game/' folder (where 'script.rpy' resides). init python: ## set-up objects secret_route_unlocked = False image bg = Solid('#000') ## create black background image label start: scene bg ## show background python: ## test if the file path exists,...
- Fri Mar 23, 2018 5:06 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Imagemap Alpha Issue
- Replies: 3
- Views: 1013
Re: Imagemap Alpha Issue
I went for your 'might be able to get away with it' take, and just drew a box around each menu choice, thus hiding the hotspot borders:
and, it works well enough, and I can keep the imagemap.
Thanks again
and, it works well enough, and I can keep the imagemap.
Thanks again
- Thu Mar 22, 2018 4:14 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Imagemap Alpha Issue
- Replies: 3
- Views: 1013
Re: Imagemap Alpha Issue
So, the way an imagemap works is to figure out ground, hover, and idle images. The button is made out of the hover and idle images, and composed on the ground. You might be able to get away with a blank idle image, and just use hover and ground. Using the transparent Idle image / switching Idle to ...
- Wed Mar 21, 2018 4:24 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Imagemap Alpha Issue
- Replies: 3
- Views: 1013
[SOLVED] Imagemap Alpha Issue
I have an imagemap that uses partially transparent PNGs, but the hotspot rectangles are being drawn onto the imagemap in some almost bit-wise AND/OR fashion (that's kinda what they look like; the resulting image isn't one or the other, but a blend that isn't a direct overlay). I probably should be u...
- Thu Jan 25, 2018 4:33 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] 360' Scrollable image viewer code help
- Replies: 1
- Views: 1084
Re: 360' Scrollable image viewer code help
Figured it out -- I forgot that screens constantly update. So, by: $ array_pos = 0 define img = ["pic_01.png", "pic_02.png", ... ] screen test: add img[array_pos] then updating the array_pos variable elsewhere, you'll change the image to the next image in the array. Didn't need t...
- Wed Jan 24, 2018 3:36 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] 360' Scrollable image viewer code help
- Replies: 1
- Views: 1084
[SOLVED] 360' Scrollable image viewer code help
Hi All, As a game mechanic, I wanted to create something where you'd find an item, open your inventory viewer, click on the item, and be able to -- via a scrollbar or just dragging -- rotate the image around (like those 360' image viewers on click on the 360' View ). The player could use this to sea...
- Sat Aug 19, 2017 5:15 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Passing Image to a Label Sub-Routine Issue
- Replies: 2
- Views: 694
Re: Passing Image to a Label Sub-Routine Issue
Yep, that worked like a charm! So, all I do to use the function is: call DisplayCrawl("some_image", 1.0, 7.0, 1.0, 0.0) or, usually: call DisplayCrawl("some_image") and, bam!, reusable image crawler code. A million thanks!! Righty, back to getting this game whipped into shape :D
- Sat Aug 19, 2017 9:58 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Passing Image to a Label Sub-Routine Issue
- Replies: 2
- Views: 694
[SOLVED] Passing Image to a Label Sub-Routine Issue
I'm new to Ren'Py and this feels like it should be simple beyond words, but I cannot for the life of me pass an image to a function; I've googled, searched and prayed for answers, but nope, nothing (which probably means this is a fundamental issue with my understanding of Ren'Py). The source code (I...