Search found 26 matches

by bambino358
Tue Jun 09, 2020 11:11 am
Forum: Ren'Py Questions and Announcements
Topic: Vertically centered text in the text box??
Replies: 3
Views: 216

Re: Vertically centered text in the text box??

Thank you,
this code do the job:

Code: Select all

define e = Character("name", window_align=(0.5, 1.0), what_xalign=0.5, what_yalign=0.5)
by bambino358
Tue Jun 09, 2020 6:46 am
Forum: Ren'Py Questions and Announcements
Topic: Vertically centered text in the text box??
Replies: 3
Views: 216

Re: Vertically centered text in the text box??

I think I tried "centered" but the text was in the middle of the screen not in the middle of the textbox, but I'm not sure.

Thanks for reply I'll try it in a few hours.
by bambino358
Tue Jun 09, 2020 12:44 am
Forum: Ren'Py Questions and Announcements
Topic: Vertically centered text in the text box??
Replies: 3
Views: 216

Vertically centered text in the text box??

Hi, I cannot figure out how to vertically centered dialogue text in the textbox. In the textbox can be 1-3 lines of the text and I want to have the text always in the middle of the textbox. For better ilustration I add simple image to ilustrate, what I want to achieve. I use Ren'Py 7.0.0. Basic code...
by bambino358
Sun May 03, 2020 7:29 am
Forum: Ren'Py Questions and Announcements
Topic: 3D camera motion, Action Editor, Transform and Image Viewer
Replies: 91
Views: 34281

Re: 3D camera motion, Action Editor, Transform and Image Viewer

At the begining when you use ratation tool. Rotate for example 20 degrees and press play. Rotation number will jump to 5500.

Example:
shift+p
3D camera
time 1s
rotate 20
press play
everything else is default
by bambino358
Thu Apr 30, 2020 9:21 am
Forum: Ren'Py Questions and Announcements
Topic: 3D camera motion, Action Editor, Transform and Image Viewer
Replies: 91
Views: 34281

Re: 3D camera motion, Action Editor, Transform and Image Viewer

When you start it press shift+P. Then when I try to rotate 3D camera it doesn't work how it probably should.
I use RenPy 7.0.0
by bambino358
Thu Apr 30, 2020 7:24 am
Forum: Ren'Py Questions and Announcements
Topic: 3D camera motion, Action Editor, Transform and Image Viewer
Replies: 91
Views: 34281

Re: 3D camera motion, Action Editor, Transform and Image Viewer

Hi, thank you for this great script. I have one problem with it (don't know if it's bug or I'm doing something wrong). When I rotate 3D camera lets say I rotate 5 degrees. Rotation automatically jump to number like -5640 and it rotates like crazy. I'm usng renpy 7.0.0 so I don't know if it's because...
by bambino358
Mon Feb 03, 2020 5:35 am
Forum: Ren'Py Questions and Announcements
Topic: In-game menu problem
Replies: 3
Views: 484

Re: In-game menu problem

You need to update the screen, use https://www.renpy.org/doc/html/other.html#renpy.restart_interaction Not sure how to do it. I tried this: if hvyjednavaniaktivni == True: hotspot (702, 288, 100, 50) action [SetVariable("hvyjednavani", hvyjednavani+1), SetVariable("zlataky", zlataky-5), Function(re...
by bambino358
Sun Feb 02, 2020 8:38 am
Forum: Ren'Py Questions and Announcements
Topic: In-game menu problem
Replies: 3
Views: 484

In-game menu problem

Hi, I have a problem with in-game menu. Code for menu: menu menupokoj: "-Ask Her How She's Doing- (10 gold) (ne)" if quest3 == True and quest3postup == 0 and zlataky < 10: "nejde" "-Ask Her How She's Doing- (10 gold)" if quest3 == True and quest3postup == 0 and zlataky >= 10: call quest3_0 If zlatak...
by bambino358
Fri Dec 06, 2019 10:30 am
Forum: Ren'Py Questions and Announcements
Topic: Multiple if statements action
Replies: 4
Views: 421

Re: Multiple if statements action

Ok I have a solution. That code I posted is wrong. All the "if" conditions has to be inside one "Action". I created multiple actions in one hotspot and that doesn't work.

More info here: viewtopic.php?t=45330
by bambino358
Fri Dec 06, 2019 8:55 am
Forum: Ren'Py Questions and Announcements
Topic: Multiple if statements action
Replies: 4
Views: 421

Re: Multiple if statements action

Use if, and the other if, change it to elif and the last one is else. Well, I did this: hotspot (1770, 995, 112, 58): if rtenka > 1: action [SetVariable("rtenka", 1), SetVariable("extrapoints",extrapoints + 1)] elif makeup > 1: action [SetVariable("makeup", 1), SetVariable("extrapoints",extrapoints...
by bambino358
Fri Dec 06, 2019 7:33 am
Forum: Ren'Py Questions and Announcements
Topic: Multiple if statements action
Replies: 4
Views: 421

Multiple if statements action

Hello, there is probably easy solution for this one but I cannot figure it out. I have a hotspot and I need to execute all actions at the same time (one click) if the condition is true. This is my code: hotspot (1770, 995, 112, 58): if rtenka > 1: action [SetVariable("rtenka", 1), SetVariable("extra...
by bambino358
Wed Dec 04, 2019 3:14 pm
Forum: Ren'Py Questions and Announcements
Topic: How to combine areas?
Replies: 1
Views: 373

Re: How to combine areas?

OK I think I figured it out. Instead of mousearea I used imagebutton with focus_mask and it works great.
by bambino358
Wed Dec 04, 2019 1:38 pm
Forum: Ren'Py Questions and Announcements
Topic: How to combine areas?
Replies: 1
Views: 373

How to combine areas?

Is it possible to combine areas? I want player to follow the path (minigame) you can see it on the image. If the player move the cursor outside of the area, minigame is closed. I'm trying to do it with mousearea but I don't know how to combine more areas to "describe" whole path. This is what I have...
by bambino358
Mon Sep 16, 2019 6:59 am
Forum: Ren'Py Questions and Announcements
Topic: Rollback issue
Replies: 6
Views: 696

Re: Rollback issue

Hmm... doesn't seem to work. Problem is that I don't want to dissable rollback. I just don't want rollback to activate the "function" above.
by bambino358
Mon Sep 16, 2019 5:31 am
Forum: Ren'Py Questions and Announcements
Topic: Rollback issue
Replies: 6
Views: 696

Rollback issue

I have this code for playing background music: init python: renpy.music.register_channel("Chan1", "sfx") init python: chan1play = True def queueChanCallback1(): if chan1play: randomswamp = renpy.random.choice( ("audio/den/1.mp3", "audio/den/2.mp3", "audio/den/3.mp3", "audio/den/4.mp3", "audio/den/5....