Search found 20 matches

by tentacle
Sat May 08, 2021 3:38 pm
Forum: Ren'Py Questions and Announcements
Topic: Using imagebutton to return variables?
Replies: 4
Views: 874

Re: Using imagebutton to return variables?

I've worked around this by just making variables like player.strength instead of arrays.
It's uglier but I can live with it.
by tentacle
Sat May 08, 2021 6:01 am
Forum: Ren'Py Questions and Announcements
Topic: Using imagebutton to return variables?
Replies: 4
Views: 874

Re: Using imagebutton to return variables?

Thanks, I knew I was on the wrong track!

It works with a simple variable, but is it possible with an array as well, e.g. if player[0] is strength? I don't find any examples/docs.

This (and other formats I tried) just give an exception:
action SetVariable("player[0]", player[0]+1)
by tentacle
Sat May 08, 2021 3:17 am
Forum: Ren'Py Questions and Announcements
Topic: Using imagebutton to return variables?
Replies: 4
Views: 874

Using imagebutton to return variables?

I'm trying to make a character creation feature, where you have X points to allocate, you click icons corresponding to str, int, etc, and when clicked, subtract a point and add one to whatevever attribute that was clicked. Here's a simplified example: screen chargen imagebutton auto "str_%s.png...
by tentacle
Sat Mar 31, 2012 5:27 pm
Forum: Development of Ren'Py
Topic: RAPT - Ren'Py Android Packaging Tool
Replies: 270
Views: 98037

Re: RAPT - Ren'Py Android Packaging Tool

Hi all. If it helps debug, with the latest version, my first tries resulted in the 'giving up' error above. I had not created an android signing key. After re-doing the installsdk and this time creating the key, I get: Traceback (most recent call last): File "C:\Users\freddie\Documents\renpy\Sn...
by tentacle
Mon Sep 05, 2011 4:56 am
Forum: Ren'Py Questions and Announcements
Topic: How do I add a side image to my game??
Replies: 26
Views: 15903

Re: How do I add a side image to my game??

I couldn't get it working. So to work around it I'm not using side images, instead I just show and hide the image each time...a little extra typing but I can survive! So for example I have the normal character definition for when I want the character to speak without any image: define m = Character(...
by tentacle
Sun Sep 04, 2011 12:28 pm
Forum: Ren'Py Questions and Announcements
Topic: Need help to insert movie
Replies: 15
Views: 2637

Re: Need help to insert movie

What I mentioned above works for me even with youtube videos. As soon as you're re-encoding the video, it really shouldn't matter what the source is. I got it to work with VirtualDub also, by disabling B-VOP, so maybe try that. If you simply can't get it to work, I can document the entire process an...
by tentacle
Sat Sep 03, 2011 11:23 am
Forum: Ren'Py Questions and Announcements
Topic: Declaring image online?
Replies: 11
Views: 2775

Re: Declaring image online?

Well the python part is easy: import urllib2 import os url = "http://www.google.com/intl/en_com/images/srpr/logo3w.png" openurl = urllib2.build_opener() page1 = openurl.open(url) pic = page1.read() filename = "image" + url[-4:] fout = open(filename, "wb") fout.write(pic...
by tentacle
Sat Sep 03, 2011 10:57 am
Forum: Ren'Py Questions and Announcements
Topic: How do I add a side image to my game??
Replies: 26
Views: 15903

Re: How do I add a side image to my game??

BTW, I'm a she ;) Oops :wink: Thanks. What you suggest works, but it seems the xalign and yalign are not respected, the image is instead the default xalign 0.0 yalign 1.0 position! # ml is our character (Mika) with an imade that should be on the left at xalign 0.0 and yalign 0.925 define ml = Chara...
by tentacle
Sat Sep 03, 2011 10:32 am
Forum: Ren'Py Questions and Announcements
Topic: Alignmet of the text
Replies: 5
Views: 540

Re: Alignmet of the text

This explains how to do it: http://www.renpy.org/wiki/renpy/doc/FAQ#How_do_I_center_text_on_the_screen.3F So I would assume you just need to define a character like "bottom" and change the alignments in the example to match what you want, but it isn't working for me I'm afraid.... sorry......
by tentacle
Sat Sep 03, 2011 9:59 am
Forum: Ren'Py Questions and Announcements
Topic: On timed menus,
Replies: 2
Views: 456

Re: On timed menus,

I'm a total newbie so forgive me if I misunderstand your question. But wouldn't putting an 'if xxx' in your label gameover bit do what you're looking for?

I like your name btw ;) hmm why does it sound familiar?
by tentacle
Fri Sep 02, 2011 2:51 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I add a side image to my game??
Replies: 26
Views: 15903

Re: How do I add a side image to my game??

I see Aki solved his problem in another thread, and I also solved one of my problems. Here's how I got it to work: define ml = Character('Mika', window_left_padding=165, show_side_image="mtl", color="#c8ffc8") image mtl: # Mika's talking head xalign 0.0 yalign 1.0 "mika_talk...
by tentacle
Thu Sep 01, 2011 4:16 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I add a side image to my game??
Replies: 26
Views: 15903

Re: How do I add a side image to my game??

Both tips work perfectly, thanks! But I'm having issues getting both to work at the same time. #mika on the left define ml = Character('Mika', window_left_padding=160, show_side_image="mt", color="#c8ffc8") image mt: # Mika's talking head "mika_talkC.png" pause 0.20 &qu...
by tentacle
Sun Aug 28, 2011 5:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Need help to insert movie
Replies: 15
Views: 2637

Re: Need help to insert movie

Okay this seems to work, using VLC to encode. Open VLC. Select Media -> Convert/Save In the window click Add and select your film. Click Convert/Save. Click Browse and select a destination. Click the little icon with the tools, on the same row as Profile, next to the red X. In the Encapsulation tab,...
by tentacle
Sun Aug 28, 2011 5:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Need help to insert movie
Replies: 15
Views: 2637

Re: Need help to insert movie

Egads! Progress...
My source video's framerate was 60 FPS, I changed it to 30 and now it works, although it's very jumpy (in renpy, not anywhere else).
I guess renpy is quite picky. I will experiment more with other settings and see if I can find a working combo.
by tentacle
Sun Aug 28, 2011 5:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Need help to insert movie
Replies: 15
Views: 2637

Re: Need help to insert movie

I'm getting a black screen (audio plays), and the video is one of my own creation. I've tried converting to theora and xvid with VLC, to mpeg4 and divx with virtualdub, to xvid with the simple xvid encoder that comes with it, to divx with mencoder, and to divx with the official divx encoder. Always ...