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?
minigame screen alignment.
- thooruchan
- Regular
- Posts: 47
- Joined: Wed Sep 03, 2014 1:48 pm
- Completed: The Festival, a YGO fangame
- Projects: Charming Monsters (WIP)
- Organization: DrawOrDrop Studio
- Tumblr: thooruchan
- Deviantart: thooruchan
- Skype: thooru-chan
- Location: Spain
- Contact:
minigame screen alignment.
Charming Monsters, the webcomic Visual Novel BL game.
Re: minigame screen alignment.
The cards in game are placed in grid, so you need to add some positional properties for it, like
http://www.renpy.org/doc/html/style_pro ... properties
Code: Select all
grid 3 4:
align (0.5, 0.5)
for card in cards_list:
- thooruchan
- Regular
- Posts: 47
- Joined: Wed Sep 03, 2014 1:48 pm
- Completed: The Festival, a YGO fangame
- Projects: Charming Monsters (WIP)
- Organization: DrawOrDrop Studio
- Tumblr: thooruchan
- Deviantart: thooruchan
- Skype: thooru-chan
- Location: Spain
- Contact:
Re: minigame screen alignment.
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.
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.
Charming Monsters, the webcomic Visual Novel BL game.
Who is online
Users browsing this forum: No registered users