well, that was stupid by me. big thanks!RicharDann wrote: ↑Wed Aug 05, 2020 8:54 am You need to type the screen name as a string.
Also you should add an image parameter to your imagebutton, idle or auto:Code: Select all
imagebutton idle "my_img_button.png" xalign 0.5 yalign 0.5: action Show("testscreen")
Search found 27 matches
- Wed Aug 05, 2020 8:58 am
- Forum: Ren'Py Questions and Announcements
- Topic: call custom screen using a button
- Replies: 2
- Views: 264
Re: call custom screen using a button
- Wed Aug 05, 2020 8:31 am
- Forum: Ren'Py Questions and Announcements
- Topic: call custom screen using a button
- Replies: 2
- Views: 264
call custom screen using a button
So, i want to call screen that i created with a button. this: imagebutton xalign 0.5 yalign 0.5: action Show(testscreen) does not work because " "testscreen" is not defined. " i put code with that screen in screens.rpy, i also tried creating myscreens.rpy with that testscreen in ...
- Fri Jul 26, 2019 8:45 am
- Forum: Ren'Py Questions and Announcements
- Topic: add something on imagebutton in screens
- Replies: 6
- Views: 634
Re: add something on imagebutton in screens
thanks a lot actually, but i cant figure out how to add another images on top of a button. when i do it using "add", it messes something up and buttons appear at the top left corner of the screen, instead of a vbox that i put them in
- Fri Jul 26, 2019 8:39 am
- Forum: Ren'Py Questions and Announcements
- Topic: add something on imagebutton in screens
- Replies: 6
- Views: 634
Re: add something on imagebutton in screens
thanks , but how to set an area where i should press to activate the button ? because its certainly not applying automatically to all elements insideKia wrote: ↑Fri Jul 26, 2019 8:08 am you can use "button" instead
Code: Select all
button: background "something.png" text "something else"
- Fri Jul 26, 2019 6:09 am
- Forum: Ren'Py Questions and Announcements
- Topic: add something on imagebutton in screens
- Replies: 6
- Views: 634
add something on imagebutton in screens
so, when creating a screen, you can add buttons using "imagebutton". but can i add text or images on top of a button to customize it without creating a ton of unique images for buttons in photoshop ?
- Mon Oct 01, 2018 12:15 pm
- Forum: Ren'Py Questions and Announcements
- Topic: video in main menu)
- Replies: 1
- Views: 264
video in main menu)
i want to use video in a main menu. i googled and wrote this in screens: add Movie(size=(800, 600)) on "show" action Play("movie", "gui/clouds.avi") on "hide" action Stop("movie") on "replaced" action Stop("movie") but video doesn...
- Mon Oct 01, 2018 10:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: animating A LOT of images
- Replies: 3
- Views: 416
- Mon Oct 01, 2018 9:25 am
- Forum: Ren'Py Questions and Announcements
- Topic: animating A LOT of images
- Replies: 3
- Views: 416
animating A LOT of images
i want to put video in the background of menu. I cant do this with videofile, so i converted video into a lot of pictures... its like 300 of them :D is there any way not to write this: "image kek: "kek1.png" 0.1 "kek2.png" 0.1 "kek3.png" 0.1 ... ... "kek300.pn...
- Sun Sep 30, 2018 2:49 am
- Forum: Ren'Py Questions and Announcements
- Topic: not allowing player to skip scene
- Replies: 3
- Views: 442
Re: not allowing player to skip scene
Use $ _skipping = False before line where you want skipping to be turned off. Remember to place $ _skipping = True after the scene. But I don't recommend forbidding player from skipping as whole. If someone will play the same scene over and over it can be annoying. I recommend using $ _skipping = n...
- Thu Sep 27, 2018 11:16 am
- Forum: Ren'Py Questions and Announcements
- Topic: not allowing player to skip scene
- Replies: 3
- Views: 442
not allowing player to skip scene
i have some scenes, that i dont want to be skipped by player. so, if scene will progress after some pause, can i not allow skipping this scene?
(sorry for my english )
(sorry for my english )
- Sat Sep 22, 2018 10:50 am
- Forum: Ren'Py Questions and Announcements
- Topic: talking animation everytime someone talks
- Replies: 2
- Views: 593
talking animation everytime someone talks
I have two pictures of a character. one with a closed and one with a opened mouth. i have animation that i wrote like this: image guy1 talk: "guy1 talk.png" 0.2 "guy1.png" 0.2 repeat 3 so everytime guy1 speaks, i write "show guy1 talk" before his line. and heres the que...
- Sat Aug 18, 2018 12:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: animation in main menu
- Replies: 5
- Views: 694
Re: animation in main menu
------ here's what i wrote: style_prefix "game_menu" image anim: "1.png" 0.5 "2.png" 0.5 repeat add "anim" but... I'm sorry, but errors were detected in your script. Please correct the errors listed below, and try again. File "game/screens.rpy", lin...
- Sat Aug 18, 2018 10:53 am
- Forum: Ren'Py Questions and Announcements
- Topic: animation in main menu
- Replies: 5
- Views: 694
Re: animation in main menu
can i do animated main menu? like gif picture or something like that You can add an animation to the main menu, but you should forget about animated GIF:s. That is not the answer. You should define an animation image anim: "img1.png" 0.2 "img2.png" 0.2 "img3.png" 0.2 r...
- Mon Aug 13, 2018 7:25 am
- Forum: Ren'Py Questions and Announcements
- Topic: how to change position of buttons in main menu?
- Replies: 2
- Views: 306
how to change position of buttons in main menu?
how to change position of buttons in main menu? i know i should change something in screens.rpy but i dont understand anything there. i just want to move main menu buttons from left to center of the screen
- Sun Aug 12, 2018 2:39 am
- Forum: Ren'Py Questions and Announcements
- Topic: changing menu mid game
- Replies: 1
- Views: 294
changing menu mid game
can i change menu picture or pause menu picture after something happens in game?