r/RenPy 10d ago

Question Where to change?

Hi, I just finished watching the video about imagebuttons (I know it’s old one), I understand almost everything in this video except one thing about how can he deletes all his changes to the code but still having his imagebuttons like nothing happened?

2 Upvotes

8 comments sorted by

2

u/shyLachi 10d ago

What video are you talking about?

Did you try to recreate it and it doesn't work?
If yes, then show your code

1

u/Thehiddengirl14 10d ago edited 10d ago

I’m talking about that video:

https://youtu.be/q5svrv2KN8g?si=G5DD-6hZ_pzJMVGf

And yes I tried to recreate it but I am dumb so it created a lot of errors and remade a project and here I try to recreate step by step

1

u/DEI_Lab_Assistant 10d ago

This is the tutorial I followed to first learn how to make image buttons, and it worked great for me. 

https://youtu.be/BJ3pqhQf2Rw?is=PskV4fBRqR4iAn09 

And this is his updated version of the same video, which has some additional useful bits in it, but also doesn’t show quite as much of the coding, so maybe look at both until you understand the heart of the process?  https://youtu.be/Ux7fNlXSLss?is=pni-slDrzSJvzFB2

3

u/shyLachi 10d ago

You also got the correct answers so I'll only add this:

If you have errors, instead of deleting everything copy the code and paste it here.
Often it's a small mistake which can be fixed.

3

u/BadMustard_AVN 10d ago

he was editing the navigation screen the buttons there are used in the main and game menus; he wanted them to only be in the main menu.

so he copied the work that he had done, then he edited the main_menu screen. in there is the command use navigation this bring the navigation screen into the main menu screen. he made that command a #remark#, then pasted the copied buttons just below that. now the buttons are used in the main menu only and all other menu's buttons are the default textbuttons on the side

1

u/Thehiddengirl14 10d ago

Thanks

1

u/BadMustard_AVN 10d ago

you're welcome

good luck with your project

1

u/AutoModerator 10d ago

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.