Page 1 of 1

minigame screen alignment.

Posted: Fri Nov 21, 2014 4:34 pm
by thooruchan
Hi there.

Again, I come up with a really newbie problem, but you guys are patient and really great, so I hope you'll help with my problem.

I've tried implementing one of Alex's great minigames to my VN (the pairs one) and though I've managed no problem to add card images, change rows and the timer, I'm running with style problems.

I want the cards to be centered on the screen so they don't cover the timer. I'd also like to add a background, and personalize the looks of the game, but I admit, I've no idea how styles work. I look at the documentation and I'm super confused because I don't really get how I'm supposed to write styles in the code, where or what they can or cannot affect.

Help?

Re: minigame screen alignment.

Posted: Fri Nov 21, 2014 4:54 pm
by Alex
The cards in game are placed in grid, so you need to add some positional properties for it, like

Code: Select all

    grid 3 4:
        align (0.5, 0.5)
        for card in cards_list:
http://www.renpy.org/doc/html/style_pro ... properties

Re: minigame screen alignment.

Posted: Sat Nov 22, 2014 6:27 am
by thooruchan
wow, thank you!
I've been reading the documentation about styles, but... I just didn't understand the sintax! Your example was really helpful, and your game works really well!

I guess I need to stop jumping to hard stuff and get a thorough look at the tutorial game first.