Search found 10 matches

by k3lit0
Fri Sep 13, 2019 11:11 am
Forum: Ren'Py Questions and Announcements
Topic: Do I need to define all the attributes in a class?
Replies: 10
Views: 953

Re: Do I need to define all the attributes in a class?

Changing to Player fixed some problems, but if I don't define each stat I get an error still. Like I still need Player.might = 0. Is that normal? I have the self.might = 0 bit already so I assumed that covered it. If not, what does that actually do?
by k3lit0
Fri Sep 13, 2019 10:59 am
Forum: Ren'Py Questions and Announcements
Topic: Do I need to define all the attributes in a class?
Replies: 10
Views: 953

Re: Do I need to define all the attributes in a class?

Classes are generally used when you need to have more than one instance of an object. Instance here means different copies of the same object but with different attributes. You have a Player class, for example, and then you can create individual characters, each with their own unique name, race, mi...
by k3lit0
Fri Sep 13, 2019 8:27 am
Forum: Ren'Py Questions and Announcements
Topic: Do I need to define all the attributes in a class?
Replies: 10
Views: 953

Re: Do I need to define all the attributes in a class?

So let's say there's just the one player character with all these stats. Would you just have a variable called might, another called agility, etc? What's the benefit of making it a class? I can change it to player or something if character isn't ok.
by k3lit0
Thu Sep 12, 2019 10:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Do I need to define all the attributes in a class?
Replies: 10
Views: 953

Do I need to define all the attributes in a class?

I'm trying to make a character creation system. I have a class for 'character' with all the variables included, but down the line when I reference them I get an error saying it's not defined (unless I separately define it, which defeats the point I think?) init python: maxstat = 10 minstat = 0 class...
by k3lit0
Thu Mar 16, 2017 10:54 pm
Forum: Ren'Py Questions and Announcements
Topic: Pause Menu keybinding problems
Replies: 2
Views: 499

Re: Pause Menu keybinding problems

What do you mean it breaks the pause menu? AHa, I fixed it randomly after a week of being annoyed by this... I had the menu going "Jump(label)" but it needed to be "Start(label)" and that seems to be working. sorry for the waste of time... but what I meant was the button was lit...
by k3lit0
Thu Mar 16, 2017 10:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Pause Menu keybinding problems
Replies: 2
Views: 499

Pause Menu keybinding problems

At the beginning of my game, right after label start: I have the following- $ _game_menu_screen = "game_menu" This, for the most part, works. It takes us to the game menu which is a list of load/save options etc. Now, after every chapter I have a persistent variable that notes that the pla...
by k3lit0
Sat Feb 11, 2017 1:18 am
Forum: Ren'Py Questions and Announcements
Topic: How to flip images easily? Without declaring every image.
Replies: 2
Views: 2537

Re: How to flip images easily? Without declaring every imag

Right now, the best way to do this is to use some ATL when you show the image: show eliam annoyed: xzoom -1 Other than that, you have to declare all the images by hand. (Ideally, you'll use Transform("file.png", xzoom=-1), since it's generally faster than flip.) Thanks, I'll try that.
by k3lit0
Fri Feb 10, 2017 11:14 pm
Forum: Ren'Py Questions and Announcements
Topic: How to flip images easily? Without declaring every image.
Replies: 2
Views: 2537

How to flip images easily? Without declaring every image.

I'd like to automatically flip images by using a flip command. Is there a way to set this up? Currently I can do this: init: image eliam flip = im.Flip("images/sprites/eliam/eliam.png", horizontal=True) Then when I type 'show eliam flip' I get the image but flipped, works great. Problem is...
by k3lit0
Sun Feb 05, 2017 3:05 am
Forum: Ren'Py Questions and Announcements
Topic: nevermind I got it :))
Replies: 1
Views: 392

Re: Problem with choice buttons and images

Also is there a way to make everything sort of... turn darker, except the choice buttons and the top text box where the question is? I have a background image that's just a semi-transparent black that would work, but how can I display it behind the choice buttons and textbox while covering the backg...
by k3lit0
Sun Feb 05, 2017 2:21 am
Forum: Ren'Py Questions and Announcements
Topic: nevermind I got it :))
Replies: 1
Views: 392

nevermind I got it :))

Edit- nevermind, I finally got it all to work. I don't know how to delete a thread. Thanks :))