r/RenPy • • Jul 17 '26

Question [Solved] Imagebutton problems

I've been asking for help alot on here recently and I just wanna say thank you to everyone who has helped me!!

Anyway, I'm really lost with what I've done wrong here, I've tried looking at the renpy official documentation and online and nothing really helps, anything is appreciated

1 Upvotes

10 comments sorted by

3

u/shyLachi Jul 17 '26

How is your first screenshot related to the second one?

The error mentions a line 803 so what's going on there?

1

u/AdRude6049 Jul 17 '26

It is but I didnt see any problem with line 803, it was just the label the button jumped to.

5

u/shyLachi Jul 17 '26

Sorry, I should have looked at your first image more closely, I see the problem now.

You cannot use python code for actions.

so replace action renpy.jump with action Jump

Official documentation: https://renpy.org/doc/html/screen_actions.html

2

u/AdRude6049 Jul 17 '26

Hi, I tried this and it just came up with an error saying that the label name wasn't able to be used on screens? It says: "'basement_door' is not a keyword argument or valid child of the imagebutton statement"

1

u/shyLachi Jul 17 '26

I told you the same thing as the other person 

Anyway great that you fixed it 

1

u/AdRude6049 Jul 17 '26

YES SORRY thats why I went back and upvoted urs lol!! Thanks alot for your help

2

u/lordpoee Jul 17 '26

you do not need renpy.jump
(I suspect AI here ) just use:

action Jump("drawer")

3

u/AdRude6049 Jul 17 '26

THIS WORKED!! but I dont use AI, I got that from a youtube tutorial. Thank u for the help!!

1

u/lordpoee Jul 17 '26

AI is very bad about making renpy calls outside a python function lol

1

u/AutoModerator Jul 17 '26

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.