Search found 236 matches

by drKlauz
Sat Sep 03, 2016 9:53 am
Forum: Ren'Py Questions and Announcements
Topic: Button hovered+unhovered bug/quirk/feature?
Replies: 8
Views: 883

Button hovered+unhovered bug/quirk/feature?

Hi, if anyone can offer simple fix for this i would really appreciate it. Expectations: hover mouse over textbutton, you see "Button#n hovered", move mouse from textbutton, text change to "Nothing hovered". Reality: hover mouse over textbutton, you see "Button#n hovered", then right click or hit esc...
by drKlauz
Thu Sep 01, 2016 3:53 am
Forum: Ren'Py Questions and Announcements
Topic: How to show a variable?
Replies: 7
Views: 866

Re: How to show a variable?

Try

Code: Select all

show text "you have [gold] gold." at truecenter
https://www.renpy.org/doc/html/text.htm ... ating-data
by drKlauz
Wed Aug 31, 2016 2:22 pm
Forum: Ren'Py Questions and Announcements
Topic: Trying to cause a change to button without the side effects.
Replies: 7
Views: 583

Re: Trying to cause a change to button without the side effe

P.S.: I almost forgot how lovely RenPy can be with classes :lol: To normally save and load game state this code is better. It's not rollback-friendly tho. #patch SetField, so retain_after_load called _EVERY_ time SetField called init -1599 python hide: def SetFieldHaxx(self,OldCall=SetField.__call__...
by drKlauz
Wed Aug 31, 2016 1:27 am
Forum: Ren'Py Questions and Announcements
Topic: Menu choice not working correctly.
Replies: 15
Views: 1119

Re: Menu choice not working correctly.

I'm pretty certain noyemi means Sprite sheets, which is like one big image that is made up of a bunch of smaller images. It was used especially back in the day when memory was really as a premium. Old Ren'py used to have a means of dealing with Sprite sheets, but that was a long time ago and that i...
by drKlauz
Wed Aug 31, 2016 1:09 am
Forum: Ren'Py Questions and Announcements
Topic: Trying to cause a change to button without the side effects.
Replies: 7
Views: 583

Re: Trying to cause a change to button without the side effe

drKlauz, your code worked for me. The min and max functions you're using are the same min and max I recognize from Java, right? max() returns the larger argument and min() returns the smaller argument? It never even occurred to me that it could be used here. Yep. If you familiar with programming, y...
by drKlauz
Tue Aug 30, 2016 8:34 am
Forum: Ren'Py Questions and Announcements
Topic: Trying to cause a change to button without the side effects.
Replies: 7
Views: 583

Re: Trying to cause a change to button without the side effe

Something like maybe

Code: Select all

Val=0
ValMin=0
ValMax=3

...

key "K_RIGHT" action SetScreenVariable("Val", max(ValMin,min(Val+1,ValMax)))
key "K_LEFT" action SetScreenVariable("Val",max(ValMin,min(Val-1,ValMax)))
by drKlauz
Wed Jun 01, 2016 4:04 am
Forum: Ren'Py Questions and Announcements
Topic: (Solved)Elif Issue
Replies: 7
Views: 504

Re: Elif Issue

Code: Select all

if x==2:
  x+=1
else:
  pass
is same as

Code: Select all

if x==2:
  x+=1
This part is useless, even harmful as it clutter your code

Code: Select all

else:
  pass
Had to note, as i see this thing too much in people's code.
by drKlauz
Mon May 23, 2016 12:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Proof Of Concept - Breeding Game
Replies: 15
Views: 3107

Re: Proof Of Concept - Breeding Game

Point of using Farm->Box->Ant hierarchy is so Farm and Box doesn't care about what Ant is. One of core points of using classes is incapsulation. Parent object (Box) don't know and don't care what stored inside it, as long as child behave. All Ant properties (name or color) must be incapsulated insid...
by drKlauz
Thu May 12, 2016 11:50 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible for one variable to depends on two variables?
Replies: 7
Views: 515

Re: Is it possible for one variable to depends on two variab

If you coding loads of attacks/combinations, you shouldn't write if/elif/else bedsheets :roll:
by drKlauz
Thu May 12, 2016 9:30 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible for one variable to depends on two variables?
Replies: 7
Views: 515

Re: Is it possible for one variable to depends on two variab

Code: Select all

if bug == bugA:
    right_combination = atk_slot1 == attack_1 and atk_slot3 == attack_3
...
if right_combination:
  #hit enemy good
else:
  #hit enemy weakly
Something like
by drKlauz
Tue May 10, 2016 7:47 am
Forum: Ren'Py Questions and Announcements
Topic: Proof Of Concept - Breeding Game
Replies: 15
Views: 3107

Re: Proof Of Concept - Breeding Game

Sounds like a bit weird, but nice breeding game coming up sooner or later :D
by drKlauz
Tue May 10, 2016 5:45 am
Forum: Ren'Py Questions and Announcements
Topic: Proof Of Concept - Breeding Game
Replies: 15
Views: 3107

Re: Proof Of Concept - Breeding Game

So, what I'm trying to do is the following: ... I hope this is a little better. NSFW link https://www.youtube.com/watch?v=7Dt5Nf7ct5c Ooooookey... You see i'm not native english speaker (it's obvious i guess), also i know nothing about ant-flies, heck i know very little about regular ants. So you s...
by drKlauz
Mon May 09, 2016 9:42 am
Forum: Ren'Py Questions and Announcements
Topic: Proof Of Concept - Breeding Game
Replies: 15
Views: 3107

Re: Proof Of Concept - Breeding Game

Zero-matches (combinations of traits from three different archetypes) still give me trouble, though. Don't understand what exactly you want to get. It really helps if you provide not only description of problem, but also test cases. Something simple code like: #i have some ant Ant=TAnt('Green','Whi...
by drKlauz
Sun May 08, 2016 4:38 pm
Forum: WiP: NaNoRenO
Topic: ʘ_ʘ Put A Sock In It! [Comedy/Fun-tasy] [NaNo2016] RELEASED!
Replies: 19
Views: 4074

Re: ʘ_ʘ Put A Sock In It! [Comedy/Fun-tasy] [NaNo2016] +Cove

Chars and animation really worth a laugh. Nice work, simple looking, yet interesting. Regarding programming, i understand main problem is conversion flash animation into renpy? Have you tried this thing? https://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=19359 Or you can try exporting animations...
by drKlauz
Tue May 03, 2016 4:15 pm
Forum: Ren'Py Questions and Announcements
Topic: [STRUCTURE] How to stock text properly?
Replies: 9
Views: 869

Re: [STRUCTURE] How to stock text properly?

Well, python offer some nice options like inheritance, in-place calculations and some other mentioned things. More flexibility. I remember spidweb games (geneforge i believe) used some kind of ini files for descriptions, each item had ID number, inheritance was simple "ParentID=123". Crude in my opi...