Search found 61 matches

by Mjhay
Sun Jun 13, 2021 9:45 am
Forum: Ren'Py Questions and Announcements
Topic: [error] Not a displayable: 9.9966 (is anim.blink timer works in screen() ?)
Replies: 2
Views: 561

Re: [error] Not a displayable: 9.9966 (is anim.blink timer works in screen() ?)

IrinaLazareva wrote:
Sun Jun 13, 2021 5:35 am
(init)

Code: Select all

transform newblink:
    .5
    linear .5 alpha .0
    .5
    linear .5 alpha 1.0
    repeat
[/code]
thanks for this idea

i try it and it works thanks . i fix a little cuz it blinks after 2 seconds . :D
by Mjhay
Sat Jun 12, 2021 7:25 am
Forum: Ren'Py Questions and Announcements
Topic: [error] Not a displayable: 9.9966 (is anim.blink timer works in screen() ?)
Replies: 2
Views: 561

[error] Not a displayable: 9.9966 (is anim.blink timer works in screen() ?)

how can i add anim.blink in my timer screen? every question the time is 20 seconds, and if the time is in 5 sec the timer will start to blink. but it goes to error: I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 899, in script call call quiz_game...
by Mjhay
Wed Jun 09, 2021 7:00 am
Forum: Ren'Py Questions and Announcements
Topic: [error] pop from empty list
Replies: 4
Views: 891

Re: [error] pop from empty list

Thanks for all of your suggestions emperf3kt, ocelot and to you alex :)
Im busy this days before because yesterday is my wedding .
I will try all your suggestions when im back at home . Thanks again :)
by Mjhay
Sun Jun 06, 2021 10:03 pm
Forum: Ren'Py Questions and Announcements
Topic: [error] pop from empty list
Replies: 4
Views: 891

[error] pop from empty list

my quiz game is all working . the timer of the game is 20 seconds every question . if you run out of time the it will jump to the next question and if its done, screen quiz result will display and the remarks is "Unaswered". and its working, EXCEPT when you run out of time on the LAST ITEM of quiz (...
by Mjhay
Tue May 18, 2021 10:51 pm
Forum: Ren'Py Questions and Announcements
Topic: looping problem i cant jump to another label
Replies: 13
Views: 1919

Re: looping problem i cant jump to another label

Alex wrote:
Tue May 18, 2021 2:53 pm
[quote=Mjhay post_id=542806 time=1621304070
Its ok now alex i get it .
I put it after calling the quiz game .

$ my_add_to_list_func(q_result, total_q_result)
$ total_q_result = []
$ q_result = []
$ total_res = []

Thanks for your help :)
by Mjhay
Mon May 17, 2021 10:14 pm
Forum: Ren'Py Questions and Announcements
Topic: looping problem i cant jump to another label
Replies: 13
Views: 1919

Re: looping problem i cant jump to another label

...i want to clear all this varibales. default total_q_result = [] default q_result = [] default total_res = [] So, just set them to empty list right before the new quiz $ total_q_result = [] $ q_result = [] $ total_res = [] Yes but its already empty . Thats the code Is there a function that can cl...
by Mjhay
Mon May 17, 2021 7:27 am
Forum: Ren'Py Questions and Announcements
Topic: looping problem i cant jump to another label
Replies: 13
Views: 1919

Re: looping problem i cant jump to another label

Well, when we have a list ('total_q_result') and appending another list to it ('q_result'), we'll have a list with one item (appended list). When we'll append another list, 'total_q_result' list will have two items (two appended lists). The function 'my_add_to_list_func' appends each item of one li...
by Mjhay
Mon May 10, 2021 9:39 pm
Forum: Ren'Py Questions and Announcements
Topic: looping problem i cant jump to another label
Replies: 13
Views: 1919

Re: looping problem i cant jump to another label

...can i ask what is the use of that function? and what variable should i use to enumerate? in screen quiz result... Well, when we have a list ('total_q_result') and appending another list to it ('q_result'), we'll have a list with one item (appended list). When we'll append another list, 'total_q_...
by Mjhay
Sun May 09, 2021 10:47 am
Forum: Ren'Py Questions and Announcements
Topic: looping problem i cant jump to another label
Replies: 13
Views: 1919

Re: looping problem i cant jump to another label

... init python: def my_add_to_list_func(res_list, total_list): for i in res_list: total_list.append(i) can i ask what is the use of that function? and what variable should i use to enumerate? in screen quiz result text "{color=#0080c0}TEST I Multiple Choice{/color}" size 30 xalign 0.5 for i, entry...
by Mjhay
Sun May 09, 2021 7:45 am
Forum: Ren'Py Questions and Announcements
Topic: looping problem i cant jump to another label
Replies: 13
Views: 1919

Re: looping problem i cant jump to another label

...but how can i append and store the q_list1 and q_list2 in one variable ? or should separate them? i want to display that two list, the multiple choice and true or false as one in the quiz_result and combine there score to make the average as one. ... You can make a variable(s) or list to store t...
by Mjhay
Sat May 08, 2021 1:58 pm
Forum: Ren'Py Questions and Announcements
Topic: looping problem i cant jump to another label
Replies: 13
Views: 1919

Re: looping problem i cant jump to another label

You need to make quiz game a separate label and call it for each set of questions. And don't forget to return back to the game from the quiz label. yeah thanks for that alex it works now. but how can i append and store the q_list1 and q_list2 in one variable ? or should separate them? i want to dis...
by Mjhay
Thu May 06, 2021 1:20 am
Forum: Ren'Py Questions and Announcements
Topic: looping problem i cant jump to another label
Replies: 13
Views: 1919

looping problem i cant jump to another label

im trap in the loop in my quiz game how can i jump to next label? im trying to make a quiz 1-10 multiple choice and 11-10 is true or false. and when in in the category2 the true or false, its always back to category 2 like infinite loop. i dont know what logic should i use to make it. :lol: is there...
by Mjhay
Wed May 05, 2021 10:21 pm
Forum: Ren'Py Questions and Announcements
Topic: deleting all persistent data except the persistent on the savegame
Replies: 9
Views: 975

Re: deleting all persistent data except the persistent on the savegame

Data for a specific save will not be deleted if you start a new game. If you save a progress, you can start a new game and load the old save anytime you want, you will not lose any progress. I think what you want is just basic variables function, not persistent. Define them as default or in your st...
by Mjhay
Wed May 05, 2021 11:25 am
Forum: Ren'Py Questions and Announcements
Topic: deleting all persistent data except the persistent on the savegame
Replies: 9
Views: 975

Re: deleting all persistent data except the persistent on the savegame

I am not quite sure what do you mean by multiple users. If it is something like different profiles, I usually let OS do that. If you want, you can implement different user profiles with their own save directory, own completition data and so on, and store them in persistent data, but again, there wo...
by Mjhay
Wed May 05, 2021 10:53 am
Forum: Ren'Py Questions and Announcements
Topic: deleting all persistent data except the persistent on the savegame
Replies: 9
Views: 975

Re: deleting all persistent data except the persistent on the savegame

There is no persistent data in the save game. The whole point of persistent data is to exist outside of saves and game instances, to persist even when you start a new game or delete a save. It is shared data belonging to application itself. If you want some data to be part of saved game, you should...