Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displayable Mouse Cursor return key error #5467

Closed
maliefrr opened this issue Apr 18, 2024 · 5 comments
Closed

Displayable Mouse Cursor return key error #5467

maliefrr opened this issue Apr 18, 2024 · 5 comments

Comments

@maliefrr
Copy link

I tried to follow the documentation https://www.renpy.org/doc/html/mouse.html#MouseDisplayable

image mouse spin:
    "gui/spin0.png"
    rotate 0.0
    linear 1.0 rotate 360.0

    # Pause so image prediction can happen.
    pause 1.0

    repeat

define config.mouse_displayable = MouseDisplayable(
    "gui/arrow.png", 0, 0).add("spin", "mouse spin", 9.9, 9.9)
    
  $ default_mouse = "spin"

but i change it like this

image mc bedroom = "images/BG/bedroom.png"
image cursor pia:
    "gui/button/cursor_1.png"

define config.mouse_displayable = MouseDisplayable(
    "gui/button/cursor.png", 0, 0).add("mouse pia","cursor pia", 0, 0)

label mainpia:
    $ renpy.block_rollback()
    $ quick_menu = True
    $ default_mouse = "mouse pia"
    scene black with dissolve
    show text "Chapter I\nThe Choosen One" with Pause(1.5) 
    scene black with dissolve
    scene mc bedroom with dissolve

but returning this is it the documentation wrong or my code? because i have follow like the documentation said
image

@renpytom
Copy link
Member

2c09515 adds a check to prevent this error, though I don't see the underlying cause here.

@maliefrr
Copy link
Author

2c09515 adds a check to prevent this error, though I don't see the underlying cause here.
the thing is i don't know the cause that trigger this error, because i followed the documentation that renpy provide maybe is there any mistake that i missed, maybe the documentation need to give more example to implement this function

@renpytom
Copy link
Member

My guess is that this might have been a double-error scenario, where this was hiding the real error.

@maliefrr
Copy link
Author

Any idea to check it?

@renpytom
Copy link
Member

The change should be in the nightly fix branch, and should show the real error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants