Search found 17 matches
- Sun May 13, 2018 9:52 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to call for a variable within a factor scale
- Replies: 21
- Views: 2219
Re: How to call for a variable within a factor scale
It works! Thank you so very much. Sorry I had missed your mention of indexing in the prior message. Here in the finished code. image character_0: LiveComposite( (1000,1000), (0,0), "builder/[orientation_[1]]/head/head_[head_[1]]_outline.png", (0,0), "builder/[orientation_[1]]/body/bod...
- Sun May 13, 2018 9:41 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to call for a variable within a factor scale
- Replies: 21
- Views: 2219
Re: How to call for a variable within a factor scale
Perfect! Finally is it possible to extend the usage of [variable] to allow for indexed statements? If not, is it possible to implement multiple conditional statements to change the variables used within the image declaration?
- Sun May 13, 2018 9:22 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to call for a variable within a factor scale
- Replies: 21
- Views: 2219
Re: How to call for a variable within a factor scale
I'm sorry, but errors were detected in your script. Please correct the errors listed below, and try again. That would be perfect, but whenever I tried that, I get the incorrect indention error. Likewise is there a way to make indexes work in the place where you have image character_0 = LiveComposite...
- Sat May 12, 2018 10:27 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to call for a variable within a factor scale
- Replies: 21
- Views: 2219
Re: How to call for a variable within a factor scale
image side character_0 = LiveComposite( (0,405), (0,0), im.FactorScale("builder/front/head/head_1_outline.png", 0.3), (0,0), im.FactorScale("builder/front/body/body_2_outline.png", 0.3), (0,0), im.FactorScale("builder/front/arms/arms_2_outline.png", 0.3), (0,0), im.Fact...
- Sat May 12, 2018 4:16 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to call for a variable within a factor scale
- Replies: 21
- Views: 2219
Re: How to call for a variable within a factor scale
Greetings Kivik, We had always needed indexing, we just tried to simplify the original problem and didn't expect indexing to cause any errors outside the scope of the issue at hand. So from what you're saying interpolation won't work within a Im.FactorScale which we're currently using to reduce imag...
- Fri May 11, 2018 8:01 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to call for a variable within a factor scale
- Replies: 21
- Views: 2219
Re: How to call for a variable within a factor scale
Greetings Kivik, Such interpolation works when done with text, however it isn't loading properly when used inside of an image declaration, hints the original issue. Likewise the indexing is relevant as this system will be applied to multiple characters within the game. Is there any way that such ind...
- Fri May 11, 2018 6:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to call for a variable within a factor scale
- Replies: 21
- Views: 2219
Re: How to call for a variable within a factor scale
Essentially what we're trying to achieve is an extension of such.
image test_file:
test_image_[1] + "/head_1.png"
zoom 0.3
This doesn't work because the images are loaded before the code that defines test_image_[1]. Is there any way to work around this?
image test_file:
test_image_[1] + "/head_1.png"
zoom 0.3
This doesn't work because the images are loaded before the code that defines test_image_[1]. Is there any way to work around this?
- Fri May 11, 2018 4:53 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to call for a variable within a factor scale
- Replies: 21
- Views: 2219
Re: How to call for a variable within a factor scale
Sorry, further development. This is the example he gave. So this is sort of an extension of the problem stated prior. default test_image_ = ["test_1","test_2","test_3"] image test_file = im.FactorScale(test_image_[1] + "/head_1.png", 0.3) label issue_test: sho...
- Thu May 10, 2018 6:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to call for a variable within a factor scale
- Replies: 21
- Views: 2219
Re: How to call for a variable within a factor scale
Yep worked! You're the best.
- Thu May 10, 2018 6:16 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to call for a variable within a factor scale
- Replies: 21
- Views: 2219
Re: How to call for a variable within a factor scale
Here's a response back from him.
Works: default test_file = "[test_image]/head_1.png"
Doesn't Work: default test_file = im.FactorScale("[test_image]/head_1.png", 0.3)
Within I'm.FactorScale it doesn't seem to be picking up the interpolation.
See original error.
Works: default test_file = "[test_image]/head_1.png"
Doesn't Work: default test_file = im.FactorScale("[test_image]/head_1.png", 0.3)
Within I'm.FactorScale it doesn't seem to be picking up the interpolation.
See original error.
- Thu May 10, 2018 5:27 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to call for a variable within a factor scale
- Replies: 21
- Views: 2219
How to call for a variable within a factor scale
Question: How do I get [test_image] to read as "test'? In essence, I want im.FactorScale("[test_image]/head_1.png", 0.3) to read as im.FactorScale("test/head_1.png", 0.3) Simplified Sample Of The Problem: default test_image = "test" default test_file = im.FactorSca...
- Fri Apr 27, 2018 5:21 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Interpolation in variable names
- Replies: 1
- Views: 371
Interpolation in variable names
Howdy, my friend has ran an issue involving Renpy. Outside of using strings he cannot interpolate variables properly. This is the example given. label test: $ character_value_1 = 1 $ character_value_2 = 2 $ character_value_3 = 3 $ character_value_4 = 4 $ character_value_5 = 5 $ x = 5 while x > 0: $ ...
- Fri Apr 20, 2018 2:56 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How do I transfer held image variable into another image variable
- Replies: 5
- Views: 804
Re: How do I transfer held image variable into another image variable
Great Kivik! So the issue got fixed but a certain part of the problem wasen't covered with your solution. My friend was able to make a work around with your solution.
- Thu Apr 19, 2018 6:52 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How do I transfer held image variable into another image variable
- Replies: 5
- Views: 804
Re: How do I transfer held image variable into another image variable
Hi there, thanks for the quick response again Alex, this is a message he wanted me to send you back. Says he's going for a image held in variable he can transfer to other variables Basically, if I have image player_initiative_token = "init_head_4.png" image player_initiative_coin = "i...
- Thu Apr 19, 2018 6:42 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Side Images Not Appearing With Variable Styled Names!
- Replies: 4
- Views: 495
Re: Side Images Not Appearing With Variable Styled Names!
Thanks everybody! You replied super fast and were able to help out. My friend was skeptical, but your solution did solve his problem Alex! All of you have an awesome day.