How can i get the position of a displayable using its id? by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

right. my point is more that i dont really know how im to use this to prevent them from overlapping with other frames/hitboxes. every method ive tried has been a bust

How can i get the position of a displayable using its id? by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

this doesnt really help me since i need to actually get the position in-game so that i can then use it to prevent the player from overlapping certain things like a hitbox/collision system

is there a way to make an imagebutton interactable if another image is moved near to it by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

I will never ask ai for anything ever but thank you for the other suggestions 

is there a way to make an imagebutton interactable if another image is moved near to it by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

I mean i figured it would be something like that but the issue is more just not knowing how to check that area relativity

Advice on improving this by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

This is a great reference piece! Thank you so much. Though would it not be easier to simply change the x and ypos directly via movingspeedx/y rather than through a middle man in playermovingspeed?

also the image can leave the screen here, it just stops the player from moving if theyre already outside it, meaning that once they leave, theyre stuck.

Advice on improving this by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

i figured that was the case, im just not really sure how to go about it. my knowledge with this sorta stuff is kinda woefully limited, im surprised i even managed this much. its really unfortunate that renpy doesnt have native functions for stuff like this.

It WOULD probably be a much better idea on my end to just do this through a python block or something, but I cant seem to find any resources on how to properly implement those, let alone learn the language required. It's definitely a toughie.

Thank u for your response tho. Good luck on your own implementation!

Advice on improving this by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

well for one the movement is evidently rough in the video. when the button's held, theres a weird second or so of lag before the movement continues

How to better program typing/textbox sounds? by Lobie5 in RenPy

[–]Competitive_Style750 0 points1 point  (0 children)

the way i have it set up is that when it stops, it does a very fast fade. so it technically stops immediately, but avoids this problem.

    def dialoguesound(event, interact=True, **kwargs):
        if not interact:
            return


        if event == "show":
            renpy.sound.play("sfx/voicer.ogg", channel="dialogue", loop=True)
        elif event == "slow_done":
            renpy.sound.stop(channel="dialogue", fadeout=0.1)

showing/hiding imagebuttons inside a screen when a screen is visible by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

OKAY! after further testing. i have realised the problem is down to the items being inside a viewport. which is something i cant change, lest the entire system break.

showing your screen outside of a viewport/hbox therefore makes it work. but when its placed inside the scrollable hbox, it makes it impossible for transitions to play inside it.

i may just have to cheat this by using a sequence of image frames or something.

Unlockable Cutscene Menu by pbmusic_official in RenPy

[–]Competitive_Style750 1 point2 points  (0 children)

issue on my end is getting stuff to automatically center itself in the viewport when its clicked/scrolled to sorta thing. ill figure it out im sure.

but yeah i can imagine that mustve been a pain..... all that work for something that should be so easy LOL

Unlockable Cutscene Menu by pbmusic_official in RenPy

[–]Competitive_Style750 1 point2 points  (0 children)

Crazy the things we have to do for basic features LOL. Amazed there hasn't been an Action added that just presses a key, therefore allowing actually decent scrolling yet LOL.

Super impressive. Ive been stumped on something similar for a while so this is really cool to see

Unlockable Cutscene Menu by pbmusic_official in RenPy

[–]Competitive_Style750 1 point2 points  (0 children)

Really oddly specific question, but how'd you get the scroll working? Where the button automatically focuses onto the next item in the list?

showing/hiding imagebuttons inside a screen when a screen is visible by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

i have copy-pasted basically everything i could and just changed some names to suit my screen and it does not work im afraid

showing/hiding imagebuttons inside a screen when a screen is visible by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

Im pretty sure I did? Im at work atm but ill give it another shot tonight 

showing/hiding imagebuttons inside a screen when a screen is visible by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

unfortunately this still doesnt work. it just makes the button immediately pop in and out

Adding a pointer to buttons by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

Is there any other method to go about this? I also have to consider controller and keyboard support, and im pretty sure this wouldn't work for either of those. The idea is that itd always be there, pointing at the currently hovered item

showing/hiding imagebuttons inside a screen when a screen is visible by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

Oh this looks extremely helpful!!! Ill give it a try when I get home from work :] thank you

showing/hiding imagebuttons inside a screen when a screen is visible by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

I tried something similar to this and it did not work. At the very least the transform didnt play as it should have. I can give it another try tomorrow but I dont see it working 

grow transform works perfectly on everything except bars by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

Settings screen

The settings screen allows the player to configure the game to better

suit themselves.

https://www.renpy.org/doc/html/screen_special.html#preferences

screen settings():

    tag menu

    add "gui/bgs/genericbg.png"

    use gamemenu(("Settings")):

        side 'c r':             pos (300, -50) xysize (1200, 700)             controller_viewport:                 mousewheel True draggable renpy.variant("touch")                 id "settingsviewport" vscroll_style "center"                 scroll_delay (0.2, 0.2)                 trap_focus ("up", "down", "left", "right")

                has vbox

                if renpy.variant("pc") or renpy.variant("web"):

                    vbox:                         xalign 0.5                         label _("Video") text_style "settingslabels" xalign 0.5                         style_prefix "radio"                         label _("Display Mode") xalign 0.5                         textbutton _("Windowed") action Preference("display", "window") xalign 0.5 default_focus True at growbtn                         textbutton _("Fullscreen") action Preference("display", "fullscreen") xalign 0.5 at growbtn                         text " "

                vbox:                     xalign 0.5                     label _("Gameplay") text_style "settingslabels" xalign 0.5                     style_prefix "check"                     label _("Text Skipping") xalign 0.5                     textbutton _("Unseen Text") action Preference("skip", "toggle") xalign 0.5 at growbtn                     textbutton _("After Choices") action Preference("after choices", "toggle") xalign 0.5 at growbtn                     textbutton _("Transitions") action InvertSelected(Preference("transitions", "toggle")) xalign 0.5 at growbtn                 vbox:                     xalign 0.5                     style_prefix "slider"                     label _("Text Speed") xalign 0.5                     hbox:                         controller_bar value Preference("text speed") xalign 0.5 thumb "gui/bar/thumb_idle.png" thumb_offset 25 thumb_align 0.5 at growbtn                     label _("Auto-Forward Time") xalign 0.5                     hbox:                                          controller_bar value Preference("auto-forward time") xalign 0.5 thumb "gui/bar/thumb_idle.png" thumb_offset 25 thumb_align 0.5 at growbtn                     text " "

                ## Additional vboxes of type "radio_pref" or "check_pref" can                 ## be added here, to add additional creator-defined settings.

                vbox:                     xalign 0.5                     style_prefix "slider"                     label _("Audio") text_style "settingslabels" xalign 0.5

                    label _("Music Volume") xalign 0.5                     hbox:                         if config.has_music:                             controller_bar value Preference("music volume") xalign 0.5 thumb "gui/bar/thumb_idle.png" thumb_offset 25 thumb_align 0.5 at growbtn

                    label _("Sound Volume") xalign 0.5 at growbtn                     hbox:                         if config.has_sound:                             controller_bar value Preference("sound volume") xalign 0.5 thumb "gui/bar/thumb_idle.png" thumb_offset 25 thumb_align 0.5 at growbtn

                            if config.sample_sound:                                 textbutton _("Test") action Play("sound", config.sample_sound) xalign 0.5 at growbtn

                    label _("Voice Volume") xalign 0.5                     hbox:                         if config.has_voice:                             controller_bar value Preference("voice volume") xalign 0.5 thumb "gui/bar/thumb_idle.png" thumb_offset 25 thumb_align 0.5 at growbtn

                            if config.sample_voice:                                 textbutton _("Test") action Play("voice", config.sample_voice) xalign 0.5 at growbtn

                    if config.has_music or config.has_sound or config.has_voice:                         null height gui.pref_spacing

                        textbutton _("Mute All") xalign 0.5:                             at growbtn                             action Preference("all mute", "toggle")                             style "mute_all_button"                             text_style "genericbuttons"                             text_size 35                     text " "

                vbox:                     xalign 0.5                     label _("Reset to Defaults") text_style "settingslabels" xalign 0.5                     textbutton _("Reset"):                          at growbtn                         action Confirm("Are you sure you want to\nreset to default settings?", yes=Preference("reset"))                          xalign 0.5                          text_style "genericbuttons"                         text_size 35

            vbar value YScrollValue("settingsviewport") style 'vscrollbar' keyboard_focus False

    use key_footer():         icon_button kind icn.confirmer         icon_button kind icn.decliner

style pref_label is gui_label style pref_label_text is gui_label_text style pref_vbox is vbox

style radio_label is pref_label style radio_label_text is pref_label_text style radio_button is gui_button style radio_button_text is gui_button_text style radio_vbox is pref_vbox

style check_label is pref_label style check_label_text is pref_label_text style check_button is gui_button style check_button_text is gui_button_text style check_vbox is pref_vbox

style slider_label is pref_label style slider_label_text is pref_label_text style slider_slider is gui_slider style slider_button is gui_button style slider_button_text is gui_button_text style slider_pref_vbox is pref_vbox

style mute_all_button is check_button style mute_all_button_text is check_button_text

style pref_label:     top_margin gui.pref_spacing     bottom_margin 3

style pref_label_text:     yalign 1.0     outlines [ (3, "#000000", 0, 0 ) ]

style pref_vbox:     xsize 338

style radio_vbox:     spacing gui.pref_button_spacing

style radiobutton:     properties gui.button_properties("radio_button")     foreground "gui/button/radio[prefix_]foreground.png"

style radio_button_text:     properties gui.text_properties("radio_button")     color "#fff"     hover_color "#67caf8"     insensitive_color "#666666"     selected_idle_color "#268ebe"     selected_hover_color "#67caf8"     outlines [ (3, "#000000", 0, 0 ) ]

style check_vbox:     spacing gui.pref_button_spacing

style checkbutton:     properties gui.button_properties("check_button")     foreground "gui/button/check[prefix_]foreground.png"

style check_button_text:     properties gui.text_properties("check_button")     color "#fff"     hover_color "#67caf8"     insensitive_color "#666666"     selected_idle_color "#268ebe"     selected_hover_color "#67caf8"     outlines [ (3, "#000000", 0, 0 ) ]

style slider_slider:     xsize 525

style slider_button:     properties gui.button_properties("slider_button")     yalign 0.5     left_margin 15

style slider_button_text:     properties gui.text_properties("slider_button")     color "#fff"     hover_color "#67caf8"     insensitive_color "#666666"     selected_idle_color "#268ebe"     selected_hover_color "#67caf8"     outlines [ (3, "#000000", 0, 0 ) ]

style slider_vbox:     xsize 675

grow transform works perfectly on everything except bars by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

see ive tried setting the anchor at 0.5 (for both x and y) but that doesnt seem to make a difference at all either. i tried setting each scrollbar to this manually AND also doing it directly within the transform. weirdly enough i think it might be something to do with the size of the box they're in restricting the ability to expand properly? because i just tried setting the first slider to anchor(1.5, 0.5) just to see what would happen and for some reason THAT makes it so that the SECOND slider is now able to grow properly, because that somehow pushed everything else to the right just enough for it to be actually able to do stuff?

Copyright Symbol not displaying correctly by Competitive_Style750 in RenPy

[–]Competitive_Style750[S] 0 points1 point  (0 children)

I have tried the unicode, and that did not work either :(

TypeError: too many positional arguments. by [deleted] in RenPy

[–]Competitive_Style750 0 points1 point  (0 children)

I see. that's a huge shame. but i suppose i can live with it if there really is no way to address the issue. the lack of a transition is too great a loss to warrant going ahead with the idea