Search found 642 matches

by Milkymalk
Fri May 25, 2018 4:18 pm
Forum: Ren'Py Questions and Announcements
Topic: "deactivate" screens (modal? z-order?)
Replies: 4
Views: 337

Re: "deactivate" screens (modal? z-order?)

See, this is why I don't answer to problems in this forum as much as I should considering how long I have been around: There is so much stuff that I still have no idea exists :D Thank you! Although I'm wondering why z-order isn't able to put the say screen above the modal screen... If I put the moda...
by Milkymalk
Fri May 25, 2018 3:59 pm
Forum: Ren'Py Questions and Announcements
Topic: "deactivate" screens (modal? z-order?)
Replies: 4
Views: 337

"deactivate" screens (modal? z-order?)

Is there a way to deactivate a screen soaking input? I have several screens as part of my permanent game interface with lots of buttons all over the place. When I run regular Ren'Py script, it doesn't advance when I click on a button (as to be expected). I tried showing an empty screen with "modal" ...
by Milkymalk
Fri May 25, 2018 7:18 am
Forum: Ren'Py Questions and Announcements
Topic: Hide a screen on mousebutton pressed?
Replies: 3
Views: 269

Re: Hide a screen on mousebutton pressed?

Underlay? Lambda? So much I don't know or understand yet. I will do the invisible button thing, but thanks, these are topics I will read more about. Now that I think about it, re-routing every possible input to closing the screen is probably overkill.
by Milkymalk
Thu May 24, 2018 8:27 pm
Forum: Ren'Py Questions and Announcements
Topic: What is the easiest way or the best way to make an inventory?
Replies: 6
Views: 480

Re: What is the easiest way or the best way to make an inventory?

Thanks :) You will need screens for so many things that it's worth reading their docs thoroughly. But I can give you a barebones screen that you can modify to your needs: screen show_inventory(): modal True # <- this screen prevents lower screens from taking input fixed: xpos 100 # <- adjust these t...
by Milkymalk
Thu May 24, 2018 7:43 pm
Forum: Ren'Py Questions and Announcements
Topic: What is the easiest way or the best way to make an inventory?
Replies: 6
Views: 480

Re: What is the easiest way or the best way to make an inventory?

Visual display is a little more complicated, but not much. I can give you some pointers so you know where to look. You will understand Ren'Py much better after you have done this :) It doesn't hurt to read the tutorial I linked. It explains how classes, methods and lists work. If you want to make an...
by Milkymalk
Thu May 24, 2018 7:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Hide a screen on mousebutton pressed?
Replies: 3
Views: 269

Hide a screen on mousebutton pressed?

Is it possible to have a screen hide itself when the player clicks anywhere? Or even on ANY key or mousebutton, essentially waiting for any input except simple mouse movement? I could make the screen a giant button with action Hide("screenname"), but preferably the player should be able to click whe...
by Milkymalk
Thu May 24, 2018 7:21 pm
Forum: Ren'Py Questions and Announcements
Topic: What is the easiest way or the best way to make an inventory?
Replies: 6
Views: 480

Re: What is the easiest way or the best way to make an inventory?

Maybe I should continue my cookbook tutorial and actually do the example how to make an actual screen for the inventory. This has been asked a few times now. Super-simple inventory: Make a list in python (using "$ inventory = []" or without "$" if inside a python block) and add strings with inventor...
by Milkymalk
Thu May 24, 2018 10:12 am
Forum: Ren'Py Questions and Announcements
Topic: renpy.set_mouse_pos is delayed?
Replies: 5
Views: 401

Re: renpy.set_mouse_pos is delayed?

Thank you, that is a good idea, but I don't think it helps as this would put the hotspot of the cursor at strange positions.

I will overthink my concept and try something else.
by Milkymalk
Thu May 24, 2018 2:41 am
Forum: Ren'Py Questions and Announcements
Topic: renpy.set_mouse_pos is delayed?
Replies: 5
Views: 401

Re: renpy.set_mouse_pos is delayed?

That won't happen because the keyboard is integral to playing the game.
Drag and drop also requires the button to stay pressed (I think), something I don't want because the player has to be able to interact with other screen elements while holding the item.
by Milkymalk
Wed May 23, 2018 7:42 pm
Forum: Ren'Py Questions and Announcements
Topic: renpy.set_mouse_pos is delayed?
Replies: 5
Views: 401

renpy.set_mouse_pos is delayed?

I use this code to change the mouse pointer to the image of a button when it is clicked and right before that move the pointer to a position where it looks like the "item" has been gently picked up. Yet for a split second, the image "jerks" to where the pointer has just been, but should not be any m...
by Milkymalk
Sun May 20, 2018 10:59 am
Forum: Ren'Py Questions and Announcements
Topic: Hotspot Function problem
Replies: 6
Views: 397

Re: Hotspot Function problem

As long as it works, it works. Nothing wrong with using labels. If you prefer the looks of a screen, you could do it like this: screen search(message): text "You found "+message+"." xalign 0.5 yalign 0.5 if message == 'nothing': button /blahblahbuttonstuff/ action Hide('search') # I can't do buttons...
by Milkymalk
Fri May 18, 2018 10:18 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] JumpOutException
Replies: 9
Views: 540

Re: JumpOutException

I feel stupid now. Thank you! I couldn't find it here https://www.renpy.org/doc/html/label.html#labels-control-flow-functions so I assumed it doesn't exist... :oops: This makes me assume that jump_out_of_context is only usable when you actually "call_in_new_context" something, which makes sense. App...
by Milkymalk
Fri May 18, 2018 7:28 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] JumpOutException
Replies: 9
Views: 540

Re: JumpOutException

@kivik: I have read the thread and I think the problem there was that there was no parent context to return to. I called the screen so I have the main context and the called context. I have to jump from the python function and I couldn't find a python equivalent of a simple jump. I guess I have to j...
by Milkymalk
Thu May 17, 2018 8:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] JumpOutException
Replies: 9
Views: 540

Re: JumpOutException

I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 17, in script call screen waitforevent File "renpy/common/000statements.rpy", line 519, in execute_call_screen store._return = renpy.call_screen(name, *args, **kwargs) File "renpy/common/00action_ot...
by Milkymalk
Thu May 17, 2018 6:59 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] JumpOutException
Replies: 9
Views: 540

[solved] JumpOutException

The following construction gives me a "JumpOutException" and I don't really know what I did wrong: screen waitforevent: ## to make the game do nothing when it's called pass label start: show screen minigame ## this is what's going on call screen waitforevent ## wait until it's done label testexit: #...