Search found 10 matches
- Sun May 21, 2017 7:48 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Fight] customized attacks damages depending on variables
- Replies: 9
- Views: 1504
Re: [Fight] customized attacks damages depending on variable
Current best practices for declaring variables is to use "default" rather than declaring them in an init block. Thank you for this advice, I did not know. Are you perhaps calling the screen rather than showing it? Yes I used a Call. And even a call to a label that initiated the background...
- Sat May 20, 2017 4:06 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Fight] customized attacks damages depending on variables
- Replies: 9
- Views: 1504
Re: [Fight] customized attacks damages depending on variable
I agree with you it is not the documentation and I do not know why it works ... I took it on another topic I believe. If I run this code: Try making your button like so (I'm going to format it with a colon and a block because I think it look clearer, but you can put it all on one line if you like): ...
- Sat May 20, 2017 7:38 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Fight] customized attacks damages depending on variables
- Replies: 9
- Views: 1504
Re: [Fight] customized attacks damages depending on variable
Thanks trooper6, this seems to work with Function when I use a function without parameters. But when I put parameters like this: imagebutton idle "images/punch.png" hover "images/punch.png" xpos 1000 ypos 588 focus_mask True clicked Function(enemy.attacked(punch.damages)) I have ...
- Wed May 17, 2017 3:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Fight] customized attacks damages depending on variables
- Replies: 9
- Views: 1504
Re: [Fight] customized attacks damages depending on variable
Thank you for your answer Evildumdum but I have already tried this method and it does not work. I also tried to do it with a Call but there is not statement equivalent to Call in an imagebutton. No matter how I place my parenthesis, my points, my commas or my quotation marks, I can not pass my param...
- Tue May 16, 2017 8:22 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Fight] customized attacks damages depending on variables
- Replies: 9
- Views: 1504
[Fight] customized attacks damages depending on variables
I just want to know if it is possible to pass a variable in the Jump of an imagebutton? In my fight screen: imagebutton idle "images/punch.png" hover "images/punch_hover.png" xpos 1356 ypos 588 focus_mask True clicked Jump(fight.attack(20)) To jump to this label with damages in p...
- Tue May 02, 2017 5:32 am
- Forum: Ren'Py Questions and Announcements
- Topic: Problem with creating a fight function (using screens)
- Replies: 9
- Views: 1826
Re: Problem with creating a fight function (using screens)
Hey there!
Have you found something for my problem?
I think that I only need to know how to pass an image in parameters of a function, but I don't know how to do that.
Have you found something for my problem?
I think that I only need to know how to pass an image in parameters of a function, but I don't know how to do that.
- Mon Apr 24, 2017 6:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Problem with creating a fight function (using screens)
- Replies: 9
- Views: 1826
Re: Problem with creating a fight function (using screens)
SuperbowserX : Sorry, I misunderstood your advice. renpy.define_screen("fight", fight_screen) I was just wondering how to use this line of code but as I am no longer in the python init. I was inspired by the documentation (which I sometimes find difficult to translate): https://www.renpy....
- Mon Apr 24, 2017 10:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: Problem with creating a fight function (using screens)
- Replies: 9
- Views: 1826
Re: Problem with creating a fight function (using screens)
Ok^^’ So I do not see how... :? I use history_place because I consider the possibility that the background of the story may change depending on how the combat progresses. I was planning to use it with a condition. But you're right, if the background does not change, I just can hide the screen. In cr...
- Mon Apr 24, 2017 4:22 am
- Forum: Ren'Py Questions and Announcements
- Topic: Problem with creating a fight function (using screens)
- Replies: 9
- Views: 1826
Re: Problem with creating a fight function (using screens)
SuperbowserX and trooper6, thank you for helping me. I tried to follow your advice and I get the following code: define e = Character('Eileen', color="#c8ffc8") image img0 = "images/img0.jpg" image img1 = "images/img1.jpg" image img2 = "images/img2.jpg" image ...
- Sun Apr 23, 2017 10:26 am
- Forum: Ren'Py Questions and Announcements
- Topic: Problem with creating a fight function (using screens)
- Replies: 9
- Views: 1826
Problem with creating a fight function (using screens)
Hello everyone! I’m working on a Ren’Py game where I want to create fights and I’m really stuck on a problem. My wish is to create a single function that will allow to start a fight by implementing the different parameters like, fight scene image, buttons etc, and the image that will return to the s...