How I can make a imagebutton to change the game resolution?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
xPerfectSuicide
Regular
Posts: 65
Joined: Mon Jun 29, 2015 6:22 am
Completed: InuYame, My little Interview can't be this boring, In the middle of U days
Organization: Luis Design'S
Skype: xPerfectSuicide
Contact:

How I can make a imagebutton to change the game resolution?

#1 Post by xPerfectSuicide » Wed Aug 12, 2015 5:33 am

I really need something that can change the game resolution and its assets (or something like that), is there any way?

User avatar
mobychan
Veteran
Posts: 275
Joined: Fri Apr 24, 2015 6:31 am
Projects: The Chosen - Sakura Pink & Gentian Blue
Organization: Foresoft
Location: Germany
Contact:

Re: How I can make a imagebutton to change the game resoluti

#2 Post by mobychan » Wed Aug 12, 2015 6:01 am

I think that's not really possible?
You can change the game resolution in the options file, but that is only loaded when starting the game^^''

User avatar
xPerfectSuicide
Regular
Posts: 65
Joined: Mon Jun 29, 2015 6:22 am
Completed: InuYame, My little Interview can't be this boring, In the middle of U days
Organization: Luis Design'S
Skype: xPerfectSuicide
Contact:

Re: How I can make a imagebutton to change the game resoluti

#3 Post by xPerfectSuicide » Wed Aug 12, 2015 6:11 am

Yes, you're right. But nevertheless, there are many visual novels with that capability, right?

I figured there would be some way to deform images and couple them to change in 360 pixels less resolution 1080p -> 720p or something like that

User avatar
mobychan
Veteran
Posts: 275
Joined: Fri Apr 24, 2015 6:31 am
Projects: The Chosen - Sakura Pink & Gentian Blue
Organization: Foresoft
Location: Germany
Contact:

Re: How I can make a imagebutton to change the game resoluti

#4 Post by mobychan » Wed Aug 12, 2015 6:53 am

the main problem would be changing the resolution, changing the images shouldn't be a problem (you could scale them using im.Scale for example)

User avatar
Donmai
Eileen-Class Veteran
Posts: 1822
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question
Projects: Slumberland
Location: Brazil
Contact:

Re: How I can make a imagebutton to change the game resoluti

#5 Post by Donmai » Wed Aug 12, 2015 8:36 am

You're asking in the wrong forum, but never mind. This thread can be moved to the right place by a moderator.
Trying to answer your question: if the proportions will be the same, there's no problem. In 'The One in LOVE' (http://lemmasoft.renai.us/forums/viewto ... 11&t=25871) I've succesfully used this code posted by SundownKid: http://lemmasoft.renai.us/forums/viewto ... 17#p378617
Yes, it uses textbuttons, but you will get the idea. I've used imagemaps in my game, BTW.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
xPerfectSuicide
Regular
Posts: 65
Joined: Mon Jun 29, 2015 6:22 am
Completed: InuYame, My little Interview can't be this boring, In the middle of U days
Organization: Luis Design'S
Skype: xPerfectSuicide
Contact:

Re: How I can make a imagebutton to change the game resoluti

#6 Post by xPerfectSuicide » Thu Aug 13, 2015 2:28 am

That's exactly what I was looking for, thank you very much.

User avatar
xPerfectSuicide
Regular
Posts: 65
Joined: Mon Jun 29, 2015 6:22 am
Completed: InuYame, My little Interview can't be this boring, In the middle of U days
Organization: Luis Design'S
Skype: xPerfectSuicide
Contact:

Re: How I can make a imagebutton to change the game resoluti

#7 Post by xPerfectSuicide » Fri Aug 14, 2015 1:37 am

For some reason. When I active the game code it becomes considerably slow. Now I have time thinking of any reason, it will be my computer?
Image
me now

wayward
Regular
Posts: 41
Joined: Tue Jun 30, 2015 9:53 pm
Contact:

Re: How I can make a imagebutton to change the game resoluti

#8 Post by wayward » Tue Aug 18, 2015 1:03 am

Came here wondering the same thing.

I like your art btw.

Post Reply

Who is online

Users browsing this forum: No registered users