Search found 10 matches

by LilyValley98
Wed Aug 04, 2021 12:17 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make an "animation" appear on the main menu after clicking a button?
Replies: 9
Views: 1538

Re: How to make an "animation" appear on the main menu after clicking a button

the `showing` variable should be on the same screen as the button. and of course, the `showing` variable is only accessible to the screen where it is declared. to avoid issues regarding the global accessibility of the variable, make it a global variable instead, and perhaps a persistent one? defaul...
by LilyValley98
Wed Aug 04, 2021 11:39 am
Forum: Ren'Py Questions and Announcements
Topic: How to make an "animation" appear on the main menu after clicking a button?
Replies: 9
Views: 1538

Re: How to make an "animation" appear on the main menu after clicking a button

that's not a valid screen. what you're doing is supposed to be ATL which is different from the syntax of a screen. What I can suggest is to use showif statements and trigger a variable. transform show_anim: on show: alpha 0.0 easein 0.25 alpha 1.0 on hide: easeout 0.25 alpha 0.0 screen test(): defa...
by LilyValley98
Wed Aug 04, 2021 7:00 am
Forum: Ren'Py Questions and Announcements
Topic: How to make an "animation" appear on the main menu after clicking a button?
Replies: 9
Views: 1538

Re: How to make an "animation" appear on the main menu after clicking a button

Why dosen´t it work? This is the button that I want to be clicked and then show that animation: imagebutton auto "UI/signature_%s.png" xpos 5 ypos 690 action showMenu("AnimationScreen", transition= slowdissolve) This is the screen that I want to show: screen AnimationScreen(): x...
by LilyValley98
Sat Jul 31, 2021 7:06 am
Forum: Ren'Py Questions and Announcements
Topic: How to make an "animation" appear on the main menu after clicking a button?
Replies: 9
Views: 1538

Re: How to make an "animation" appear on the main menu after clicking a button

Träumer wrote: Fri Jul 30, 2021 3:44 pm you can make a screen and call it like that: In screens.rpy under screen navigation(where the other menubuttons are); textbutton "Animation" action ShowMenu ("AnimationScreen")
Thank you for explaining! Unfortunately, it didn't work.
by LilyValley98
Fri Jul 30, 2021 2:14 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make an "animation" appear on the main menu after clicking a button?
Replies: 9
Views: 1538

How to make an "animation" appear on the main menu after clicking a button?

Can you make an "animation" appear in the main menu by clicking a button in the main menu? It's an animation that appears somewhere on the main menu with two images cycling back and forth. I know how to make this in the script but I don't know how to do this in the main menu itself.
by LilyValley98
Tue Jul 27, 2021 6:46 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]AttributeError: type object 'LoveInterest' has no attribute 'affection'
Replies: 8
Views: 1201

Re: AttributeError: type object 'LoveInterest' has no attribute 'affection'

Okay, I just read through your code, and you've double-assigned LoveInterest. You assign that as the name of a class, but then you also make it a variable storing one of your characters with "action SetVariable("LoveInterest", jin)". It's failing because you're asking it to chec...
by LilyValley98
Mon Jul 26, 2021 12:34 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]AttributeError: type object 'LoveInterest' has no attribute 'affection'
Replies: 8
Views: 1201

Re: AttributeError: type object 'LoveInterest' has no attribute 'affection'

I don't know if it's the cause of your problem, but I did find one problem that might be it. Where you have defined your classes, you forgot to note that they are objects. Try this: init python: class Player(object): def __init__(self, name = "Shin", age = "18", birthday = "...
by LilyValley98
Mon Jul 26, 2021 11:50 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]AttributeError: type object 'LoveInterest' has no attribute 'affection'
Replies: 8
Views: 1201

Re: AttributeError: type object 'LoveInterest' has no attribute 'affection'

selectedCharacter.affection tries to get value of affection of whatever is in selectedCharacter variable. When selectedCharacter is shin you have a problem: it does not have an affection field. You need to check if selectedCharacter has it before using it. Notice that your error changed. Was: File ...
by LilyValley98
Mon Jul 26, 2021 9:27 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]AttributeError: type object 'LoveInterest' has no attribute 'affection'
Replies: 8
Views: 1201

Re: AttributeError: type object 'LoveInterest' has no attribute 'affection'

text "Affection: [LoveInterest.affection]" Should be if isinstance(selectedCharacter, LoveInterest): text "Affection: [selectedCharacter.affection]" Thank you for replying! but it still doesn't work and still has the same AttributeError problem. I don't know if this is a beginne...
by LilyValley98
Sun Jul 25, 2021 12:56 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]AttributeError: type object 'LoveInterest' has no attribute 'affection'
Replies: 8
Views: 1201

[SOLVED]AttributeError: type object 'LoveInterest' has no attribute 'affection'

I wanted to make a bar appear in the Character Screen of the love interest but not on the Character Screen of the protagonist. I don't know what I did wrong, please help... Here is the code for reference since I don't really know what the error wanted me to do. screen gameUI: imagebutton: xalign 1.0...