Custom Imagebuttons instead of Basic Textbuttons in RenPy Main Menu Guide

  Рет қаралды 88,155

qubodupDev

qubodupDev

Күн бұрын

Image buttons in Ren'Py game main menu for a more unique look without messing up the pause menu (too much).
0:00 This is what we're working towards
0:10 Intro
0:22 Ren'Py project start
0:48 Default menu look
0:55 Menu background image
1:37 Resizing background image
2:41 Cut my image into buttons, this is my last resort
5:33 Export layers as images in GIMP
7:33 _hover versions of buttons
8:47 imagebutton instead of textbutton
10:35 get x/y position of buttons
11:40 imagebutton xpos and y position
12:32 button hover click sound*
13:40 save (load) button
15:45 vbox image position messed up fix
17:13 Shift-R (autoreload changes in RenPy)
19:16 Fixing imagebuttons on top of game menu
* You don't actually need the [ rectangular/square paranthesis ] after 'hovered'. Those are only needed if hovering the button is supposed to call multiple (comma-separated) functions.
How to install GIMP • How to Download and In...
Complete click sound effect tutorial • Creating a Click Sound...
Thanks to @tyras_extra_bagelization and @cannibal.chrollo for posting at / how_do_i_make_the_butt... and for permission to use the nice menu image in a tutorial

Пікірлер: 179
@michiipichii
@michiipichii 2 жыл бұрын
Hey just wanted to say you can bypass the xpos ypos button thingy. I have a file that's as big as my game screen on medibang (I use that as my art editor) where I place my button exactly where I want it. Then just use imagebutton auto "gui/mm_start_%s.png" focus_mask True action Start() and it will automatically be in the right place. :) just make sure the rest of the picture is completely transparent.
@NicoleHam
@NicoleHam Жыл бұрын
Had a feeling this would work but wasnt sure if Renpy 'knew' which bounds were transparent. Thanks for confirming!!
@georgeoxa6584
@georgeoxa6584 7 ай бұрын
Just figured it out myself, and returned here to comment, lol
@TrueMonkeyNinja
@TrueMonkeyNinja 5 ай бұрын
How will it be automatically where you want it? Could you explain please?
@georgeoxa6584
@georgeoxa6584 5 ай бұрын
@@TrueMonkeyNinja Let's say, you have 1920x1080 picture of hall, where you need a button on a door. You take the whole picture, cut everything, except that door and keep the rest space transparent, so you have a small door on a 1920x1080 picture. If you use this picture for your button, it should work like a charm!
@zeviolett
@zeviolett 3 ай бұрын
i did this but the dimensions are all messed up when i put it in the game... even though i made it match with the dimensions of the game in my art program, when i put it in, it's completely wrong??
@giannimigliori1164
@giannimigliori1164 2 жыл бұрын
I've found a better method of reconfiguring the game menu so it doesn't have the main menu buttons! Leave your new code for the image buttons where it is (under screen navigation():). Go to the end of the main menu code (before where it explains the game menu screen using comments), and type "screen navigation2():" or something to differentiate it. Then, make a new RenPy project, find the navigation code, copy it, then paste it under your new screen. Change the "use navigation" in the game menu code to "use [name of new screen here]." Thanks for this tutorial btw! I'm new to RenPy and I'm actually attempting to make a visual novel as a present for me and my partner's first anniversary.
@ramazankolsuz3564
@ramazankolsuz3564 2 жыл бұрын
Fckin thank you, this was more helpful than video when it comes to ingame main menu
@ShadowWolf1307
@ShadowWolf1307 2 жыл бұрын
can confirm that it works like you described. Thank you very much!
@genshinfiok
@genshinfiok 2 жыл бұрын
thanks! the solution of the video had no logic for me. this has much more sense.
@dan.a.delion
@dan.a.delion Жыл бұрын
@@genshinfiok sorry to bother you, but can you please help me? In this comment it says "Then, make a new RenPy project, find the navigation code" and i don`t understand what navigation code, under what screen?
@jasszzzz
@jasszzzz Жыл бұрын
Hi, could you explain what you mean by change the USE NAVIGATION (where is this?)
@Ria_NT
@Ria_NT 2 жыл бұрын
If you have trouble somewhere on 11:40 : make sure there's a "start_idle" and "start_hover" image make sure you add "gui/" before the name of the image, and do not include the idle or hover part and the "True action Start() needs to be in the same line as the imagebutton auto
@Austmorg
@Austmorg 2 жыл бұрын
THANK YOU THIS HELPED SO MUCH!
@Piratequeen010156
@Piratequeen010156 2 жыл бұрын
you're a literal life saver! Fixed my problem. Thanks so much
@Macgolden10
@Macgolden10 Жыл бұрын
My goat
@NicoleHam
@NicoleHam Жыл бұрын
Bro. You saved me. Thank you.
@merisav4171
@merisav4171 Жыл бұрын
THANK YOU
@prismaticcardinal4489
@prismaticcardinal4489 2 жыл бұрын
In case you are using Photoshop: - Use the select tool to select it, then press CTRL + C to copy, and CTRL + V to paste. It will paste the selection as a new layer - Right click the desired layer in the layer menu, and click "Quick Export as PNG". It will automatically crop it down to the layer size and only export that layer - To find the coordinates, click on the layer and press CTRL + T. In the top left-ish hand corner of your screen, you will see the coordinates of the top-leftmost corner of the layer.
@BlackHayateMX
@BlackHayateMX Жыл бұрын
that "click click click click" felt ASMR goooooooood~~~~
@bakad5458
@bakad5458 4 ай бұрын
I was thinking the exact same thing!! Never heard any asmrtist who says click like that 😭
@jholt8017
@jholt8017 3 жыл бұрын
Thank you, thank you, thank you! This is easily the best Ren'Py tutorial I've ever seen. Your explanations are so clear and logical (much clearer than the Ren'Py documentation and anything on Lemma soft forums, that's for sure!) If you did more of these I would lap them up! Thanks again.
@qubodupDev
@qubodupDev 3 жыл бұрын
Thanks, that's very encouraging to read! I'll be keeping an eye on the renpy subreddit for interesting problems to solve and maybe people will ask questions here or on my renpy hello world video. So see ya in the next guide ^^
@jesusito_777
@jesusito_777 Жыл бұрын
For those who have problems on 11:40 with "Tab characters not allowed", I fixed it by editing it directly on Atom (the same as used to edit* the script). I already tried to do it on notepad++ and didn't work, it automatically identifiy spaces as an unknown language. Now, on the last part, I fixed my problem on the 19:45. You will have two "use navigation", on the second one you will only put that # at the beginning of the command, you will paste the cutted part (from "fixed" to "confirm not main menu") bellow the first "use navigation" and voila, it'll working without problems.
@lacuentadev
@lacuentadev Жыл бұрын
Yo tengo el mismo problema, si pudieras ayudarme:(
@JonasSpartan
@JonasSpartan Жыл бұрын
@@lacuentadev Fijate en el espaciado, osea sí es como dice el del vídeo peeero, lo tienes que pegar a la izquierda, si no, el lenguaje piensa que es un "hijo" y no te lo acepta como tal. En otras palabras, fíjate que "screen navigation()" esté pegado a la izquierda.
@JonasSpartan
@JonasSpartan Жыл бұрын
@@lacuentadev A y también deja activado el primer "use navigation"
@lacuentadev
@lacuentadev Жыл бұрын
@@JonasSpartan Bueno, realmente resolví todo el problema al pasar el código a Atom, igualmente gracias Jsjsk
@revacholforever
@revacholforever 3 жыл бұрын
thank you so much for this, and ty for pointing out that save should be load, ill definitely fix that! tysm
@parkinglot1651
@parkinglot1651 3 жыл бұрын
Thanks for this! I'm still a beginner at coding but the more I learn about it, the more it seems a lot simpler than what I initially thought^^ it also gets more fun, maybe I'll pursue a job in game developing-- which is a bit of a stretch for me though to be honest
@paulschaaf8880
@paulschaaf8880 2 жыл бұрын
Fantastic tutorial on customizing the main menu. It's not a huge change to a game but things like this just feel more polished when a dev puts the effort in to do something like this IMO. Looking forward to trying it myself.
@diediedice
@diediedice 3 жыл бұрын
Thank you so much for making these tutorials! I've just started using Ren'py and to say it's confusing without any coding knowledge is an understatement, haha. But it's so much more understandable when you explain and show things.
@SpeedyFAST2006
@SpeedyFAST2006 Жыл бұрын
To anyone who only want the audio and not the imagebutton; Just use: "hovered [ Play("sound", "audio/Pen_Clicking .mp3") ]" after "action Start()"
@photosynthesis394
@photosynthesis394 11 ай бұрын
THANK YOOOU damn
@MasonOcker
@MasonOcker 3 жыл бұрын
Dude, I've been looking for a remotely comprehensive overview of image mapping for years; many thanks for this video!
@josh4275
@josh4275 3 жыл бұрын
oh please keep making renpy tutorials. these are so helpful.
@kaylareyes818
@kaylareyes818 3 жыл бұрын
Oh my lord, you have no idea how useful this is!! This makes me so tempted to try this out for my game!! I will definitely keep this in mind for the future, and thank you for such a wonderful resource!
@jenqui4505
@jenqui4505 11 ай бұрын
Almost lost me at 19:16 but this still helped me big time. Thanks!
@benito9830
@benito9830 2 жыл бұрын
I would kiss you if I could, you have no idea how happy I am when this has worked as a work around for a problem with my Main menu buttons, thank you!!!!
@Lukex375
@Lukex375 2 жыл бұрын
Btw, it's probably better to use hovered (and unhovered) for actual images, for sounds it's easier to use hover_sound ("sound", "path/to/file") or activate_sound ("sound", "path/to/file") no need to add the Play statement as these parameters are passed directly to renpy with those functions (if you add Play it won't work, which can be confusing because for hovered you MUST add Play for it to work, hence, save hovered for other stuff like images). In case you're still not convinced, there's also a noise clipping sound if you pass over the button really fast when you use hovered (for my sound anyway), but with hover_sound it doesn't happen, cheers.
@leviathan7670
@leviathan7670 3 жыл бұрын
OMG THANK U SO MUCH!, me and my friends need this for a project at school. You saved us, thank you
@3ll1x3r
@3ll1x3r 3 жыл бұрын
really good tutorial! and super helpful thank you, I just kinda wondered what you did at the end tho, it looked like you set some things back to their original way and I got a little lost 😂 basically how did you get the custom menu not show up on preferences/load/game menu?
@qubodupDev
@qubodupDev 3 жыл бұрын
Yeah it ended up being a bit quick. I should have zoomed out or something to illustrate it better. So at first my solution to prevent the image menu from showing up in the game menu was to move the content of `screen navigation` into* `screen main_menu` - where `use navigation` was written. And comment out `use navigation` in both `screen main_menu` and `screen game_menu`. The problem is that this leads to the game menu not having any navigation. My solution was to keep what I copied into `screen main_menu` but restore `screen navigation` and also undo all my original changes, restoring the text button navigation. Then I de-uncommented `use navigation` only in `screen game_menu` *moving or copying "into" something means moving/copying code into a block. you can tell what a block is by looking at indentation. `screen game_menu` has 0 spaces on its left. `tag menu` has 4 spaces on its left, meaning it is "inside" `screen game_menu`. The next block starts as soon as a line somewhere below it also has 0 spaces on its left. (This is most likely not correct Python terminology but I hope its understandable) Please let me know if it's still not 100% clear.
@3ll1x3r
@3ll1x3r 3 жыл бұрын
@@qubodupDev thank you for taking the time to write it out for me! It was really helpful and I managed to get it working smoothly 😄
@WoyaThePug
@WoyaThePug 2 жыл бұрын
I wish you made more ren'py tutorial videos. This is extremely helpful!
@enna.kreality6746
@enna.kreality6746 2 жыл бұрын
Omg thank you thank you thank you my main menu came out so well and I love it and it’s all because of you so thank you so much!
@pboi0451
@pboi0451 2 жыл бұрын
Thank you for this tutorial! It took me many hours but I finally got mine working consistently in my project!
@wormeow
@wormeow Жыл бұрын
The only working button which I got is "start", the rest absolutely do not want to appear in the main menu, I'm freezing, I've already several times almost threw my laptop. Absolutely no idea what to do...
@wormeow
@wormeow Жыл бұрын
I still don't know the reason why my buttons didn't work, but by mixing two different codes and through REAL luck I created working code, yay!!! Thanks so much for the tutorial!
@imtrappedinmydadsbasement
@imtrappedinmydadsbasement Жыл бұрын
@@wormeow what was the code?? i got the same issue and i dont want to rip every single hair off my head
@user-rv9gc9vm9j
@user-rv9gc9vm9j Жыл бұрын
​@@wormeowcould you tell me the code? I have the same issue and I don't know how to fix it
@raczy_3364
@raczy_3364 Жыл бұрын
@@user-rv9gc9vm9j did you fix it ?
@beacool486
@beacool486 Ай бұрын
@@imtrappedinmydadsbasement @user-rv9gc9vm9j @raczy-3364 if you make a fullsize image only one of them will load you have to crop them
@Ria_NT
@Ria_NT 2 жыл бұрын
Thank you for this tutorial, I never knew I needed this
@pachxii
@pachxii 2 жыл бұрын
an easier way to get rid of the button overlay in the other menus (e.g. Preferences Menu) you can # the second use navigation line without having to cut and paste the whole menu screen
@Rei-in6dh
@Rei-in6dh Жыл бұрын
Thank you 🙏🏻
@beacool486
@beacool486 Ай бұрын
yuo are everything to me
@Crispx43
@Crispx43 7 ай бұрын
Super helpful! Just wondering if you knew a way to make the click sound not when you hover over the image but when you click on it?
@Piratequeen010156
@Piratequeen010156 2 жыл бұрын
Such an amazing tutorial. Thank you!!!!!!!!!
@esm6427
@esm6427 2 жыл бұрын
I did every thing like the video But the start button is the only one working but others don't
@mrdeadbird1479
@mrdeadbird1479 Жыл бұрын
Thanks, man! I should have done this ages ago.
@yuliya3k
@yuliya3k 2 жыл бұрын
Thank you so much. It the best tutorial I've ever seen!))
@crazyfun95
@crazyfun95 2 жыл бұрын
I have a question - if you don't crop the individual idle/hover buttons, and you set the mouse to only detect the button above an area that isn't transparent, then do you really need to crop the buttons? I think if you don't crop them, you can position them easier over the background image without looking for coordinates, because the scales will be the same. Or does the start screen become heavier like that and the game lags?
@zooweemama9064
@zooweemama9064 2 жыл бұрын
12:30 I did everything and saved and went to open the project and it said a exception has occurred this is what it says File "renpy/common/00start.rpy", line 212, in script call call_load_reload_game from _call_load_reload_game_1 File "renpy/common/00keymap.rpy", line 504, in script python hide: File "renpy/common/00keymap.rpy", line 504, in python hide: File "renpy/common/00keymap.rpy", line 514, in _execute_python_hide renpy.load("reload-2") Exception: Couldn't find a place to stop rolling back. Perhaps the script changed in an incompatible way?
@zooweemama9064
@zooweemama9064 2 жыл бұрын
If you can help me with this that would be really great🤕
@marmaladereverie
@marmaladereverie 2 жыл бұрын
try closing and reopening the project (dont forget to save your script!) this method worked for me, tell me if it works for you
@riskyadisurya1025
@riskyadisurya1025 Жыл бұрын
Awesome tutorial!!! Thank you!!
@fruitt1053
@fruitt1053 3 жыл бұрын
Thank you for this helpful video.
@themonsterlive3625
@themonsterlive3625 2 жыл бұрын
I have done everything without skipping anything, but renpy gives me an error saying that tab characters are not allowed in renpy scripts. Help :')
@dumdum2853
@dumdum2853 Жыл бұрын
SAMEEE
@Natro166
@Natro166 2 жыл бұрын
Very helpful thank you my dude
@demiroid2010
@demiroid2010 2 жыл бұрын
i tried this imagebutton is working after that i got an error saying " 'focus_mask' is not a keyword argument or valid child for the vbox statement. focus_mask > True" same error for action start() and hovered.
@dboeify
@dboeify 3 жыл бұрын
I'm just getting into renpy, so my working knowledge is a little lacking. I was imagining a game mechanic that would allow a player to be focused on something in the foreground with a blurred, but as he moved the cursor to the blurred background it would focus on the background while blurring the foreground, kind of like a rack focus on a camera. I saw people make a parallax mechanic based on mouse placement, so I didn't know if a similar thing could be done for this, where as the mouse moves over certain zones a new image in an image sequence would display, mimicking a rack focus type look. Is something like that possible?
@NicoleHam
@NicoleHam Жыл бұрын
Thank you so much man, this is one of those tutorials that is just SO GOOD and so needed, and you learn a TON while making it too. I had a SINGLE QUESTION; and that is, what if I wanted to add a transparent text button? I tried this method with text buttons that are image buttons, but they have transparency behind them. IE, say my bg has a looping pattern, so it isnt just a solid color image or static image. Is there a 'hotbox' function like that or something where I can set which region is actually hoverable and clickable?
@DrToxicology
@DrToxicology 2 жыл бұрын
Ik this is a year old but with the hiding the buttons from when you go onto another page (19:16) whenever I do it,it completely breaks my game and I have to keep it as it was before I’m really confused. If this helps I use the software Atom,if you could try to help me figure what I’m doing wrong that would be a great help
@dragonanimations0748
@dragonanimations0748 Жыл бұрын
Same!! It keeps crashing my game when I delete the navigation. If you find a fix to this please let me know!
@sophcos
@sophcos 2 жыл бұрын
Thank you so much, this was so helpfull!
@Neihael
@Neihael 7 ай бұрын
you are my savior
@koo3649
@koo3649 2 жыл бұрын
20:56 I did everything and when I go to the main menu it doesn't allow me to click on the start or anything the buttons dont work anymore🤕 I got really lost at the end
@AmonVangrell
@AmonVangrell 2 жыл бұрын
Amazing! tyvm! super tutorial!
@Birdproblem
@Birdproblem 2 жыл бұрын
Sorry But I would love to see how you fixed the image buttons ontop of game menu again, it was very unclear and I had trouble understanding what to do, nonetheless good vid
@Fellicityy
@Fellicityy Жыл бұрын
This was really helpful but I'm having some issues with the buttons. After I click on the load or about options, they stay floating on the screen after they've changed the window. I'm a bit new to renpy so if anyone could help me with that I'd appreciate it a lot! (Nvm, I realized all is explained at the end lol thanks regardless!)
@1am3iki
@1am3iki Жыл бұрын
I'm having an issue where replacing the Load button with an image button puts the image button in the save/load screen instead of the Main Menu screen. Any ideas on how to fix this would be greatly appreciated!
@user-rv9gc9vm9j
@user-rv9gc9vm9j Жыл бұрын
I have the same issue :(
@sidesalt8324
@sidesalt8324 3 жыл бұрын
amazing i love you
@Eknowledge7
@Eknowledge7 2 жыл бұрын
Can you do a tutorial on how to do the game menu please👍🏼
@kaylareyes818
@kaylareyes818 3 жыл бұрын
Quick Question! How do you put audio on the pre-existing buttons? I decided to ask you since this video was so useful and I know you'd do a great job at explaining it!
@diediedice
@diediedice 3 жыл бұрын
It's quite easy. Just put: hovered [ Play("sound", "audio/soundname.mp3") ] right after Start ( ) to every button :)
@mortyxisonyt
@mortyxisonyt 2 жыл бұрын
@@diediedice i did this and it doesnt show any errors, the game runs, but when i hover nothing happens. What do you think the issue could be?
@diediedice
@diediedice 2 жыл бұрын
@@mortyxisonyt Hmm...In which folder did you put your mp3 file? Maybe try putting it into the audio folder and change "soundname.mp3" to "audio/soundname.mp3"? Also, double check that the file isn't just silence instead of the sound you wanted. Lastly it could also be that your sound is turned off (in the game settings). I hope something in here helped ^^
@mortyxisonyt
@mortyxisonyt 2 жыл бұрын
@@diediedice thank you for replying! I tried all but sadly for some reason it still doesn't work. I will look more into it and reply if I find a solution in case someone is struggling with the same problem
@diediedice
@diediedice 2 жыл бұрын
@@mortyxisonyt No problem! I'm sorry it didn't work though. Good luck with your research, I hope you find out how to fix it :))
@chelseymartin1978
@chelseymartin1978 Жыл бұрын
So I had an issue where when I clicked on my Load or Options button, it would bring up a transparent version of the game menu (I customized my game menu before i did the main menu oops) and everything looked junky. It took me quite a while to find out what the heck I was trying to fix, but for anyone having the same issue!! Go to your screens.rpy, and underneath screen game_menu(title, scroll=None, yinitial=0.0): there should be another couple lines, one that says style_prefix "game_menu" underneath this line should be something like "if main_menu: add.gui_main_menu_background" all you need to do is change it to "add.gui_game_menu_background" and it'll pull up your custom game menu instead of the transparent thing that it did to me. :) i hope this helps others haha.
@NoiGS
@NoiGS 2 жыл бұрын
Does this method works with quick menu too? Great tutorial btw
@spencerpierce7668
@spencerpierce7668 2 жыл бұрын
In the last section "fixing imagebuttons on top of game menu", I followed all of the instructions but it did not work for me. It just deleted my imagebuttons and brought back the standard main menu. I found another comment on this video saying: I've found a better method of reconfiguring the game menu so it doesn't have the main menu buttons! Leave your new code for the image buttons where it is (under screen navigation():). Go to the end of the main menu code (before where it explains the game menu screen using comments), and type "screen navigation2():" or something to differentiate it. Then, make a new RenPy project, find the navigation code, copy it, then paste it under your new screen. Change the "use navigation" in the game menu code to "use [name of new screen here]." I tried this method as well but I got this error: File "game/screens.rpy", line 431: end of line expected. "screen navigation2():" Can someone please help me?
@EpicMomentGuru
@EpicMomentGuru 6 ай бұрын
Life saver!
@Ohmoth
@Ohmoth 3 жыл бұрын
I have an issue with the coding, there seems to be a problem with using True its like it wont recognise that word
@avellox1419
@avellox1419 3 жыл бұрын
That True is in the same line (line 306 in his case). You have to write it in the same line
@demenciachan273
@demenciachan273 3 жыл бұрын
@@avellox1419 Yes,Continuallty erro....
@TerryAB
@TerryAB 2 жыл бұрын
So helpful thanks
@ehh6208
@ehh6208 2 жыл бұрын
THANK YOU SO MUCH!!!
@entrepierce2171
@entrepierce2171 2 жыл бұрын
Awesome video, thanks a lot! It only took me like 4 hours haha. I used a png photo, not a full background. So it was a pain finding the button coordinates. I had to do it all manually. I finally have everything working except 1 little bugger. The button hover sound isn’t working. I wrote it exactly the same, but I get a can’t find the file error every time. I tried it with the file in audio, game file, even tried changing the name. It is still not working. I am trying to research it but nothing is helping so far. Would really appreciate if anyone knows how I may fix this.
@Louisuccubus
@Louisuccubus 2 жыл бұрын
hey, idk if im too alte to this but, i had the same issue with game music, and it helped putting it in the images folder with a subfolder called music so the path was "music/buttonsound.mp3". dont ask me why, i have no clue but it solved the issue for me
@jargontrueseer
@jargontrueseer 6 ай бұрын
The sound on my image buttons has a delay, which is really unfortunate since my game is heavily rhythm, based. Anyone know how to fix it? I can't find a solution anywhere online.
@milktea-mage
@milktea-mage Жыл бұрын
THANKS SM !!
@sephirsart7823
@sephirsart7823 Жыл бұрын
THANK YOU!
@ernov7050
@ernov7050 3 жыл бұрын
Thank you
@colmduggan8230
@colmduggan8230 3 жыл бұрын
i have the image buttons showing in the correct position but i cant click on them nor is the colour changing when i hover over them and the original menu text is at the top left bunched together which i can interact with i have tried both cropped images and 1920 x 1080 transparent backgrounds neither is working any fix would be appreciated
@rozshuu2383
@rozshuu2383 2 жыл бұрын
Have you made a tutorial regarding on the buttons under the gui dialogue box during gameplay? (Save, load, skip, etc.) Replacing the text buttons with images, would it be the same as it was done here?
@ririnfebriyanti-ki7fc
@ririnfebriyanti-ki7fc 14 күн бұрын
20:16 From this minute,I can't restore the menu navigation how?
@g4anode
@g4anode 3 жыл бұрын
Is RenPy capable of dynamically adjusting aspect ratio? I'd like to make my game playable on both 21:9 and 16:9 monitors without black bars (with 16:9 just cutting off the extra width as needed). Or do I need to make two different versions of my game?
@qubodupDev
@qubodupDev 3 жыл бұрын
Very good question. From what I found so far, RenPy can't handle different aspect ratios :| Found a forum post from 2015 saying that they want to add it one day...
@user-tk9um6oe8g
@user-tk9um6oe8g 4 күн бұрын
Hey, no one's going to see this but I'm desperate. I've done everything the video told to, I even followed michiipichii's advice with the whole "avoid xpos ypos" thingy, but the buttons are still all over the place. Some are not even present on screen. Any advice ???
@v1r143
@v1r143 2 жыл бұрын
I have a problem. It keeps saying " File "game/screens.rpy ", Line 307: u'True' is not a keyword arguement or valid child for the vbox statement. True > action Start()". What do I do for this? Can you help me out. edit: Fixed it! Yet it isn't in the right spot I wanted it to be in :(
@matti_re
@matti_re 2 жыл бұрын
what was the fix for the True statement? i have the same problem. (nvm just continue on the same line and even though it doesnt highlight it works).
@Ria_NT
@Ria_NT 2 жыл бұрын
i have this same problem too i need to know edit : So apparently, i need to make sure there's an start_idle and start_hover image. make sure you add "gui/" before the name of the image, and do not include the idle or hover part. and the "True action Start() needs to be in the same line as the imagebutton auto
@lacuentadev
@lacuentadev Жыл бұрын
I did everything I had to do (although it only occupied 1 button) when playing the game I get this error: file "game/screens.rpy", line 301: tab characters are not allowed in ren´py scripts
@catoblepag
@catoblepag 10 ай бұрын
Thank you very much for the tutorial! I know this video is quite old, but if you're still there could you please help me with a problem? I've made an imagebutton for a painting on the wall of a background: when you click on it, it displays a zoomed image of the painting and a comment by the main character. I've used "show screen" instead of "call", 'cause I wanted the dialogue to continue if you click anywhere else. So far, so good: everything works, except for the fact that when you're done looking at the painting and you click, the game kicks you back to the title screen. I've looked everywhere and for the life of me I can't find the right script line to resume the gameplay! This is my code: screen living_room(): imagebutton auto "bg scene_3_painting_%s": focus_mask True hovered [ Play("sound", "audio/click.mp3") ] action Jump ("look_at_painting") label look_at_painting: show image "painting_see.png" with dissolve alice "It's a painting." hide image "painting_see.png"
@cosmobleak
@cosmobleak Жыл бұрын
I don't even know if someone is still watching this video or is willing to help me, but here's my problem : I want to make the menu image appear with a dissolve effect when the player is launching the game, and not just make the image appear all at once, since my menu music has a kind of fade-in effect. Is it possible to do that?
@user-ex3il1ns5t
@user-ex3il1ns5t Жыл бұрын
Hi, I'm having a problem with making the other buttons to work, I can get the start one! But I have load, options, and info but non of them with light up or work, and I did everything like you did and it frustrating me, heck I even deleted renpy for a fresh reset but still! If anyone has any advice I'd be so grateful!
@realthefew
@realthefew Жыл бұрын
Is there a way to make the hover a lot smoother?
@SuzieClemme
@SuzieClemme Жыл бұрын
When I did the last part, the original text buttons appeared in the menu alongside the image buttons. How do I fix this?
@AP-xj3iz
@AP-xj3iz 2 жыл бұрын
@qubodupDev how did you configure notepad++ for renpy? i can't get it to highlight the markup language
@rickst3r_silly
@rickst3r_silly 2 жыл бұрын
it's been literally a year but the problem is that when i reload the game for seeing if the buttons works it say "tab characters are not allowed in Ren'py script" what i have to do to resolve this problem?
@12GaugeEngage
@12GaugeEngage 2 жыл бұрын
this method bricked my game for whatever reason
@MikeDerUnwissende2
@MikeDerUnwissende2 2 жыл бұрын
Does your method work even if the user is not using full screen, smaller or larger (full screen) resolution? Edit: I testet it, Ren'Py will scale it automatically, great :)
@nilovanders6190
@nilovanders6190 2 жыл бұрын
I have a problem: I named all my images exactly like you did, but it gives me this error: Exception: Imagebutton does not have a idle image. (auto=u'gui/mm_start_%s'). But the thing is, the start button does have an idle image!! It's in the gui folder, named "mm_start_idle" with all the other menu buttons. I also made the exactly same changes you did, So I do not understand where the problem is Please, could you help me? EDIT: Found a way that works!! I use this code: imagebutton xpos XXX ypos YYY idle "mm_ZZZ_idle" hover "mm_ZZZ_hover" focus_mask True action Start() - Replace the XXX , YYY and ZZZ by whatever they need to be - PUT THE BUTTON PNG IMAGES IN THE 'image' folder, not the 'gui' one. (It wouldn't work for me if the images where in the 'gui' file.) - if you want to use this code for another button than the start one, just change "Start()" by whatever you need
@mirror_raccoon
@mirror_raccoon 2 жыл бұрын
THANK YOU, i have been struggling for two hours trying to get it to work
@tatianashlykova1522
@tatianashlykova1522 2 жыл бұрын
I have a problem on 12:21 . It says True is not a keyword argument or valid child for the box statement.
@merkoo7
@merkoo7 Жыл бұрын
I know this is a year later but THANK YOU SO MUCH! This was just the solution I was looking for.
@natashatelesss
@natashatelesss 3 жыл бұрын
I'm having a problem. I did the load button exactly as you showed in the video, but it's NOT appearing on my game. I tried refreshing but still not there. And it's not showing any error, it just doesn't show up in my menu... Can you please help?
@qubodupDev
@qubodupDev 3 жыл бұрын
My guess is that you first add the image and then (below it) add the background image. Is that it? Did you save the file? What does refreshing mean? Shift-R? Restart the game.
@natashatelesss
@natashatelesss 3 жыл бұрын
@@qubodupDev I managed to fix the problem but I have no idea how... Haha. Thank you! Yes, sorry. English is not my first language.
@great-white-bengal-tiger
@great-white-bengal-tiger 3 жыл бұрын
I'm having the same problem! No matter what I do it doesn't show up :( Edit: just tested the other buttons similar to load and those aren't working too
@ltsf
@ltsf Жыл бұрын
@@great-white-bengal-tiger i have the same problem :(
@llStarfilled
@llStarfilled 2 жыл бұрын
why does it keeps saying that tab characters are not allowed in renpys scripts at the line 305?
@pm6828
@pm6828 3 жыл бұрын
Since the rest of the image is transparent at the time, do you need to do the cropping step? Wouldn't it just autoalign correctly if you left the extra transparent space?
@qubodupDev
@qubodupDev 3 жыл бұрын
I wondered about this as well once I was done with it all. You are completely right, this should work and save time figuring out coordinates and typing those in. I wonder how many buttons it'd take for performance to drop significantly...
@esm6427
@esm6427 3 жыл бұрын
@@qubodupDev So can it be done without the coordinates it is too hard for me to do since I am new to all of this?
@esm6427
@esm6427 2 жыл бұрын
How will this work man ?
@obliqueninja4961
@obliqueninja4961 2 жыл бұрын
@@esm6427 You can skip the "Crop to Content" step for the buttons (first at 5:43), and export the full layer for each button. This wil allow you to omit the the xpos and ypos values when coding it into ren'py. Exporting the full layer will inflate the file size of a PNG slightly, but it's marginal, and makes it much easier to work with, especially when they're static elements that always appear in the same place.
@esm6427
@esm6427 2 жыл бұрын
@@obliqueninja4961 Thank you for the reply
@DerJaybe
@DerJaybe Жыл бұрын
Not working it's showing "TypeError: 'ShowMenu' object is not subscriptable"
@Aly_Sakamura
@Aly_Sakamura 2 жыл бұрын
What if I want the audio to play only when you click the button?
@Patrick1985McMahon
@Patrick1985McMahon 2 жыл бұрын
you should try VS Code. It's a great editor. Far better than notepad++
@koffinrott
@koffinrott Жыл бұрын
I have a question: Does this work for any sort of button, and does it have to look like part of the menu image, or can they be buttons that stand alone against the menu backdrop?
@IDIOTICID
@IDIOTICID 2 ай бұрын
i wouldn't believe so. What i would do it put the buttons on the screen image and treat it the same as if it fit.
@derjunge6034
@derjunge6034 2 жыл бұрын
How can i export a image in GIMP with a transparent background?
@juanpedraw4245
@juanpedraw4245 2 жыл бұрын
You lost me at the debugging part. I keep getting the File "[File name]", line 367: expected statement. fixed->:
@peterkurten6884
@peterkurten6884 2 жыл бұрын
Hello, how are you?. I have a "little" problem. As of minute 11:40, when modifying screens.rpy and saving the result, Renpy notifies me of an error: File "game/screens.rpy", line 306: Tab characters are not allowed in Ren'Py scripts. What do you think it is? I have the latest version of Renpy and I followed the steps as is in the video D:
@llStarfilled
@llStarfilled 2 жыл бұрын
have you figured that out?
@ltsf
@ltsf Жыл бұрын
for anyone wondering: if you edited with notepad, too bad, when you use TAB or space renpy registers is as some weird language if you edit with anything remotely similar to atom, notepad ++ , that is suited for coding, press enter at the end of the previous line and your cursor will jump to where it sould be (in this block) then the best it would be to paste already written somewhere else prepared code so you dont accidentally press space etc. it often happens with screens renpy i had it many times, really annoying try to never interfere with any lines when you do stuff in screens lol
@themeatly2-452
@themeatly2-452 3 жыл бұрын
👌
@choisian9306
@choisian9306 3 жыл бұрын
hi !! im having problems with the hover sound button code, whenever i try to put it it always says an error. " the name 'play' is not defined" can you please help me?
@qubodupDev
@qubodupDev 3 жыл бұрын
You have to write *Play* , not *play* (has to have upper case P) Does this solve it?
@choisian9306
@choisian9306 3 жыл бұрын
@@qubodupDev it did !! thanks alot!
@astronaut3167
@astronaut3167 2 жыл бұрын
True action not working ,, I know I can't code , it always gives me error , I can't even get hello world working .. I hate coding ..
@dogarf3516
@dogarf3516 Ай бұрын
SUFFOCATION!!! NO BREATHING!!!
@realmarchie
@realmarchie Жыл бұрын
Could I do this in photopea?
@DarkonXBL
@DarkonXBL 3 жыл бұрын
12:20 If I type in TRUE it gives me an error message and the letters do not turn orange when I type it. Any ideas?
@DarkonXBL
@DarkonXBL 3 жыл бұрын
NVM I figured it out. Instead of entering TRUE in a new line I just continued the line. The letters still didn't turn out orange but it worked
@DanielVeril
@DanielVeril 2 жыл бұрын
can u make animated image button?
@martinebonita2658
@martinebonita2658 2 жыл бұрын
bro, after every step i'd notice a problem which i would spend an hour crying over until i realised that you adressed it in the nesxt section bruh.... so od
@theyaxicat5677
@theyaxicat5677 2 жыл бұрын
Am I the only one who hears Snape.
@salmon_8072
@salmon_8072 5 ай бұрын
09:45
Why your VN Characters feel Wooden (and How to Fix it!)
13:23
Visual Novel Design
Рет қаралды 35 М.
I Built a Transparent Boomerang (it's lethal)
13:10
Mike Shake
Рет қаралды 3,4 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 100 МЛН
Алексей Щербаков разнес ВДВшников
00:47
Live2d Tutorial for Ren'py
1:12:14
Visual Novel Design
Рет қаралды 34 М.
Simple, Non-Commercial, Open Source Notes
30:25
By Default
Рет қаралды 796 М.
Japanese web design: weird, but it works. Here's why
11:49
Phoebe Yu
Рет қаралды 477 М.
JPEG is Dying - And that's a bad thing
8:09
2kliksphilip
Рет қаралды 531 М.
I Built an INFINITELY ONE-SIDED Violin??
15:39
Xyla Foxlin
Рет қаралды 159 М.
RenPy Tutorial using Transitions | Applying Transitions in Ren'Py
6:33
So you wanna be an Animator: Selecting a Software
24:08
El Hombre Chorizo
Рет қаралды 162 М.
I made my own Image File Format
5:16
FaceDev
Рет қаралды 252 М.
Image Gallery with Pages | A Ren'Py Tutorial
10:26
Zeil Learnings
Рет қаралды 7 М.
iPhone VS Samsung🤯
1:00
Skinnycomics
Рет қаралды 9 МЛН
Умный электрический помощник для штор
0:23
Склад дизайна
Рет қаралды 1,6 МЛН
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 6 МЛН
Bluetooth connected successfully 💯💯
0:16
Blue ice Comedy
Рет қаралды 3,8 МЛН
Как настроить камеру хоп-ап
1:00
TimToker
Рет қаралды 1,6 МЛН