Search found 33 matches

by Cristiander
Sat Jan 13, 2018 4:37 pm
Forum: Ren'Py Questions and Announcements
Topic: "Call" function not defined
Replies: 6
Views: 1177

Re: "Call" function not defined

I am running Renpy 6.99.13.2919. I checked for updates and this is the version I got. Now the error says "Name error: global name "From_current" is not defined Full path is this: I'm sorry, but an uncaught exception occurred. While running game code: File "game/script - maleficent.rpy", line 488, in...
by Cristiander
Sat Jan 13, 2018 7:00 am
Forum: Ren'Py Questions and Announcements
Topic: "Call" function not defined
Replies: 6
Views: 1177

"Call" function not defined

I made a button that is meant to call a label and I get the error that my call function is not defined. The code for the button is: screen Info_button: imagebutton: idle im.Scale("gui/rpg/info_action.png", 50, 50) hover im.Scale("gui/rpg/info_idle.png", 50, 50) action Call("Label_info") But I get th...
by Cristiander
Sat Jan 13, 2018 5:40 am
Forum: Ren'Py Questions and Announcements
Topic: expected statement error
Replies: 6
Views: 866

expected statement error

Hello. I'm running into this error and I don't understand where the problem is. label transition_label: if screen_on: linear 1.0 screen_x 1.0 linear 1.0 screen_x 1.0 $ screen_on= False else: linear 1.0 screen_x 0.0 linear 1.0 screen_x 0.0 $ screen_on= True return The role of the label is to change p...
by Cristiander
Sun Apr 02, 2017 6:38 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Error: Attribute lookup_builtin_module failed
Replies: 2
Views: 460

Re: Error: Attribute lookup_builtin_module failed

I see.

Yes, i used

Code: Select all

$import random
but now i used

Code: Select all

init:
    python:
        import random
It works perfectly. Thank you :)
by Cristiander
Sat Apr 01, 2017 8:03 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Error: Attribute lookup_builtin_module failed
Replies: 2
Views: 460

[Solved]Error: Attribute lookup_builtin_module failed

I don't know what I did but I'm now running into this error:

https://ibb.co/dyewdv

I don't understand what this means.
The error appears whenever I try to save. After I save, if I try to go back the Ui is gone.

I haven't modified anything in the UI

I don't understand what is causing this.
by Cristiander
Thu Mar 30, 2017 1:08 am
Forum: Ren'Py Questions and Announcements
Topic: [solved]persistent Counter
Replies: 4
Views: 1032

Re: persistent Counter

Use timer in your screen. Here's an example : screen counterdisplay(): zorder 100 timer .1 repeat True action [If(time_remaining <= 0, true=SetVariable("time_remaining", 0), false=SetVariable("time_remaining", time_remaining -.1))] if time_remaining >= 5: text ("%.1f" % time_remaining) color "#00FF...
by Cristiander
Wed Mar 29, 2017 5:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]persistent Counter
Replies: 4
Views: 1032

Re: persistent Counter

How about using a screen with zorder value set to 1000 ? That might work, but how do I make the timer go down? I made this for the screen script: #This screen adds a counter that persist through scene transitions screen countdown(): zorder 100 fixed: if timer_remaining > 45: text ("%.1f" % timer_re...
by Cristiander
Tue Mar 28, 2017 3:17 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]persistent Counter
Replies: 4
Views: 1032

[solved]persistent Counter

I want to have a counter that can still be shown when I transition from one scene to another. What I'm using right now is this script: https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=13381 Unfortunately in this script my counter is seen as an image, a DynamicDisplayable that is faded when I tr...
by Cristiander
Sat Mar 18, 2017 10:56 am
Forum: Development of Ren'Py
Topic: Videos not playing
Replies: 8
Views: 1561

Re: Videos not playing

Thanks~ :D I tried your code + the nep sprite in a new project using Renpy 6.99.12.4.2168 with New Gui on Windows. It loads fine; I don't see it get stuck... until I push the back button :shock: :shock: Only the PNG parts of the sprite remains. Where did the webm parts go ? :lol: It happens with ot...
by Cristiander
Thu Mar 16, 2017 12:59 pm
Forum: Development of Ren'Py
Topic: Videos not playing
Replies: 8
Views: 1561

Re: Videos not playing

@Cristiander : can I borrow your sprite for testing? I tried using a random webm movie from the web as a sprite and it didn't get stuck. The problem is, it disappears when I push the "back" button.... :o Ok, so these are the resources of the image: https://we.tl/wmy2ljcPPF And this is how it's call...
by Cristiander
Wed Mar 15, 2017 4:21 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]Question Integrating breathing animation?
Replies: 9
Views: 2571

Re: Question Integrating breathing animation?

I ended up exporting my animation as a webm and defining it as an image.

Still, thank you guys for all the options :)
The shader demo looks especially interesting.
by Cristiander
Wed Mar 15, 2017 4:09 pm
Forum: Development of Ren'Py
Topic: Videos not playing
Replies: 8
Views: 1561

Videos not playing

I made a breathing animation for one of my characters but it doesn't always work. I have it as a webm The define code for it is this: image nep_body normal = Movie(channel="nep_body", play="sprites/nep/nep_body.webm", mask = "sprites/nep/nep_body_mask.webm") And the call function is simply this: sho...
by Cristiander
Wed Mar 15, 2017 4:03 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]play random sounds for a period of time
Replies: 3
Views: 1245

Re: play random sounds for a period of time

I did some experimentation and came up with this code in the end: init: python: ##this function creates a playlist of sounds def sounds(songlist, lenght, channel_c, initial): playlist = ["sounds/pause_1s.mp3"] if initial == True: for song in songlist: playlist.append(song) lenght -= 9 i = 0 while i ...
by Cristiander
Sun Mar 12, 2017 11:28 am
Forum: Ren'Py Questions and Announcements
Topic: [solved]play random sounds for a period of time
Replies: 3
Views: 1245

[solved]play random sounds for a period of time

I have a couple of sounds and I want them to be played randomly for the duration of a few minutes in my game. They each take about 10-12 seconds so in order to fill a 5-7 minute mark I can't use queues. I need them to function independently from the text boxes. How could I do that? Is there a way to...
by Cristiander
Tue Mar 07, 2017 2:55 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]Question Integrating breathing animation?
Replies: 9
Views: 2571

Re: Question Integrating breathing animation?

indoneko wrote:Renpy doesn't support Live2D.

You could, however, export your live2D animation into a movie (preferably in webm format) and then use that displayable in renpy.
Would that start to lag the game if I use too many?