Page 1 of 1
Unusual Gameboard Size
Posted: Mon Oct 17, 2016 11:01 pm
by AlavarRandomity
So I'm working on a slide puzzle minigame for my VN and then this happens:
I'm using the same code from this thread:
[Link]
What I'm trying to figure out is how to resize the minigame board so that it's a proper playable size. The minigame at the moment should be showcasing a picture that's 300px x 300px. Unfortunately, that's not the case at the moment.
I have a basic idea of coding in Ren'py, but I'm still staring at the code, wondering how I can resize this accordingly. It's probably staring at me right in the face, but no matter how many times I stare at the code, the more I can't get a clear idea of what I need to figure out first in order to fix this unusual bug. Any suggestions/comments/help is greatly appreciated, even if it doesn't solve this problem.
Re: Unusual Gameboard Size
Posted: Tue Oct 18, 2016 2:28 pm
by Alex
Well, you could try to zoom in/out the game field, like:
Code: Select all
transform my_zoom:
zoom 2.0 # play with the value
##### The game screen.
screen fifteen_scr:
##### Timer.
if timer_on:
timer 1.0 action If(fifteen_timer > 0, [SetVariable("fifteen_timer", fifteen_timer-1), Return("smth")], Return("time_is_up") ) repeat True
text str(fifteen_timer) xalign 0.1 yalign 0.1
##### Game field.
frame:
at my_zoom # <-------
xalign 0.5 yalign 0.5
rest of the code unchanged.
Re: Unusual Gameboard Size
Posted: Tue Oct 18, 2016 9:03 pm
by AlavarRandomity
I've tried the code, but it appears that not only does the size of the game field change, but also the picture tiles.
EDIT: Let me see if I can't find a way to fix the tiles and their spacing. The picture is 300px by 300px at the moment
Re: Unusual Gameboard Size
Posted: Wed Oct 19, 2016 1:48 pm
by Alex
Hm, actually tiles shouldn't have any spacing at all - the game field is just a grid filled with tiles, and I don't understand how you make them to overlap each other...
Re: Unusual Gameboard Size
Posted: Wed Oct 19, 2016 8:20 pm
by AlavarRandomity
Honestly, I'm trying to figure that out myself, considering I didn't change anything in the code. It's just a literal copy and paste (just changing the pictures themselves, small enough to fit the game screen.
I have another project that I worked on in an older version of Ren'py, while the project that I'm currently showing here in this thread is made on the latest version. The older version of Ren'py's engine displays the game perfectly, while this newer version doesn't seem to understand the sizes we're currently looking at.
For the record, the game's window is currently 1280px x 720 px
Re: Unusual Gameboard Size
Posted: Thu Oct 20, 2016 1:19 pm
by Alex
Well, in 6.99.10.1227 it works fine. Try to use pre-made images of desireable size, 'cause the original code doesn't change the size of image (just split it to tiles).
I haven't played with new gui and all, but try to check the styles applyed to the game field.
Re: Unusual Gameboard Size
Posted: Thu Oct 20, 2016 9:37 pm
by AlavarRandomity
Hm, I see. The current version of Ren'py I'm using is 6.99.11.1749.
And okay, I'll definitely give it a shot. Thanks for your help, Alex!