Hello all!
Is there a way to re-size image buttons to be a certain shape?
I am creating a point and click game, and I have only figured out how to add an image button in a certain bit of an image, instead of a certain area...
I want an image-button to be the size of this door, although I can only figure out how to do a pixel of it, instead of the whole thing.
Sized ImageButtons?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- Ocelot
- Lemma-Class Veteran
- Posts: 2402
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Sized ImageButtons?
Step 1: make everything, but areas you want to be sensitive, transparent. Like that:
Step 2: create an imagebutton using this image and place it in its proper place
Step 3: set focus_mask property to True: https://www.renpy.org/doc/html/style_pr ... focus_mask
Step 2: create an imagebutton using this image and place it in its proper place
Step 3: set focus_mask property to True: https://www.renpy.org/doc/html/style_pr ... focus_mask
< < insert Rick Cook quote here > >
- HypersDev
- Newbie
- Posts: 18
- Joined: Thu Jul 16, 2020 1:43 am
- Projects: DutyCalls
- itch: ItsHypers
- Contact:
Re: Sized ImageButtons?
That seems like a lot for something so trivial, I'll give it a shot though! tyOcelot wrote: ↑Thu Jul 29, 2021 8:11 pm Step 1: make everything, but areas you want to be sensitive, transparent. Like that:
Step 2: create an imagebutton using this image and place it in its proper place
Step 3: set focus_mask property to True: https://www.renpy.org/doc/html/style_pr ... focus_mask
Who is online
Users browsing this forum: Bing [Bot]