Search found 6 matches
- Sat Dec 16, 2017 8:53 am
- Forum: Ren'Py Questions and Announcements
- Topic: Odd Floating Point behavior
- Replies: 1
- Views: 337
Odd Floating Point behavior
I was porting a game over from straight Python, and noticed a strange phenomenon. I figured out a way around it, but I was wondering why it happened. In Python 3.6... object.variablea += max ((object.variableb - 7) / 5, (object.variableb - 10) /2) variablea is a float equal to 0.0 variableb is an in...
- Mon Jun 12, 2017 12:21 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Button question
- Replies: 2
- Views: 451
Re: Button question
Thank you
- Mon Jun 12, 2017 10:21 am
- Forum: Ren'Py Questions and Announcements
- Topic: Button question
- Replies: 2
- Views: 451
Button question
I've been looking for what I think is the answer to a simple question. What I want is a small button to appear on the upper right corner of the screen throughout my game. All that button needs to do is toggle a variable. Sorry if this is covered a million times elsewhere -- I've seen explanations, b...
- Mon May 01, 2017 12:29 pm
- Forum: Ren'Py Questions and Announcements
- Topic: weird error[solved]
- Replies: 10
- Views: 2470
Re: weird error
Came across this thread when encountering the same problem. In my case it was because compiling caused the "from" statements to be added to calls, and when I cut and pasted a small chunk of code that included calls, I ended up with duplicate from statements.
- Wed Apr 12, 2017 5:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Dictionaries not persisting through load screen
- Replies: 3
- Views: 615
Re: Dictionaries not persisting through load screen
Thank you, that helped. Not sure I understand why the simpler variables are saving fine without that, but using define for the dictionaries and lists that change over time solved my problem.
- Wed Apr 12, 2017 1:50 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Dictionaries not persisting through load screen
- Replies: 3
- Views: 615
Dictionaries not persisting through load screen
So, I have some information stored in integer variables, and initialized, such as: $ rope = 0 and some in dictionaries: $ attraction = {"alexa":0, "becca": 0} and in the course of the game the valued of the variables and the value of the dictionaries change. What I am noticing is...