Solarus Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
SMF - Just Installed!
Home
Help
Search
Login
Register
Solarus Forum
»
Solarus
»
Development
»
Question: Is it possible to resize a surface?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Question: Is it possible to resize a surface? (Read 2151 times)
froggy77
Full Member
Posts: 150
Question: Is it possible to resize a surface?
«
on:
May 18, 2015, 10:23:04 pm »
Hello,
Is it possible to resize a surface with something like "surface:set_size()" that seems to not exist?
I would like to to do it in a "rebuild_surface' function.
Thanks in advance.
«
Last Edit: May 19, 2015, 07:28:54 pm by froggy77
»
Logged
Git Hub:
https://github.com/hydralerna/ZL-project
Christopho
Administrator
Hero Member
Posts: 1186
Re: Question: Is it possible to resize a surface?
«
Reply #1 on:
May 19, 2015, 02:30:15 am »
No, sorry
Logged
froggy77
Full Member
Posts: 150
Re: Question: Is it possible to resize a surface?
«
Reply #2 on:
May 19, 2015, 07:27:12 pm »
It doesn't matter. =>[]
Thank you.
Logged
Git Hub:
https://github.com/hydralerna/ZL-project
Christopho
Administrator
Hero Member
Posts: 1186
Re: Question: Is it possible to resize a surface?
«
Reply #3 on:
May 19, 2015, 08:41:27 pm »
A workaround is to create a new surface with the wanted size and draw the first one on the new one.
Another workaround is to keep only one surface with the max size and keep unused parts transparent.
Logged
froggy77
Full Member
Posts: 150
Re: Question: Is it possible to resize a surface?
«
Reply #4 on:
May 24, 2015, 06:57:07 pm »
Ok thank you for your advices. I managed to do what I wanted
I opened a topic to share this little creation
HUD: ZL Hearts
If someone finds some bugs , thank you to report it.
Logged
Git Hub:
https://github.com/hydralerna/ZL-project
Print
Pages: [
1
]
« previous
next »
Solarus Forum
»
Solarus
»
Development
»
Question: Is it possible to resize a surface?