Search found 13 matches
- Sat Oct 02, 2021 12:43 pm
- Forum: Ren'Py Questions and Announcements
- Topic: layeredimage moves to the left, when ATL image added
- Replies: 1
- Views: 346
layeredimage moves to the left, when ATL image added
I want to add some animated emotion icons for my sprites. If I add simple animated icon like those: image Micro_Emo_Angry_Animated: "Micro_Emo_Angry_01" 0.5 "Micro_Emo_Angry_02" 0.5 repeat It works well. But when I add this image with ATL to my layeredimage sprite: image Micro_Em...
- Wed Dec 30, 2020 12:51 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to get random value in renpy
- Replies: 3
- Views: 666
Re: How to get random value in renpy
Hi, _ticlock_ I don't think it's problem if random() get same value after rollback and forward. But this atl code, for example doesn't work well. contains: "some_image" xpos renpy.random.randint( 0, 1920 ) ypos renpy.random.randint( 0, 1080 ) pause 1 repeat If I use this code, "some_i...
- Wed Dec 30, 2020 11:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to get random value in renpy
- Replies: 3
- Views: 666
How to get random value in renpy
I make a game, that has a lot of animated background and other arts. Because of that, I need a lot of random values. But I read some posts on this forum, and on another places, and it looks like that on renpy I can't use python random functions. It get me random value one time and on second time it ...
- Sun Dec 27, 2020 1:22 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to do math properly?
- Replies: 5
- Views: 416
Re: How to do math properly?
Oh, thank's a lot! I get properly value after all, when I use math.tan( math.radians( 32.7 ) ). Now all works well, thanks again!
- Sun Dec 27, 2020 1:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to do math properly?
- Replies: 5
- Views: 416
Re: How to do math properly?
radians Oh, this was my problem, I forgot about radians. But how to get grads? I use math.degrees() math.radians() but don't get normal results. For example tan in xcalc get me 0.641 and that's value what I need. In python I get: 194.323 if I use math.degrees( math.tan( 32.7 ) ) 36.783 if I use mat...
- Sun Dec 27, 2020 8:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to do math properly?
- Replies: 5
- Views: 416
Re: How to do math properly?
A try to make a function but this didn't work too. -50 + ( 300 * tan( 32.7) ) should be 142 I'm a right or not? If I put this walue, all works well, but not this code. And if I uncomment renpy.log(...) line, I get a error.
My code:
My code:
- Sun Dec 27, 2020 4:04 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to do math properly?
- Replies: 5
- Views: 416
How to do math properly?
I have some code on renpy with atl. But it don't works properly. If I use calc and get value of -50.0 + ( 300.0 * math.tan( 32.7 ) ) and put it in renpy - it works well. But I want for renpy to calc it. Sorry for my English. 111.png And how can I print calc result to console? If I use python.print(....
- Tue Feb 25, 2020 3:46 am
- Forum: Ren'Py Questions and Announcements
- Topic: re: On Asking Questions
- Replies: 113
- Views: 21071
Re: On Asking Questions
Oh, I search a little more and get it. I can declare an image object like this:
And then just put it on complex image
Code: Select all
image masked_image = AlphaMask( "another_image", "mask" )
Code: Select all
image complex_image:
contains:
"masked_image"
contains:
...
- Mon Feb 17, 2020 8:52 am
- Forum: Ren'Py Questions and Announcements
- Topic: re: On Asking Questions
- Replies: 113
- Views: 21071
Re: On Asking Questions
How can I add AlphaMask() func to "complex" image? Like this string: show expression AlphaMask( "123", At( "456", center )) as mask How to add this to image like this. And then just "show" or "scene" it: image someimage1: contains: "someimage2&q...
- Tue Oct 01, 2019 2:57 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Animation with dots, lines, bezier curves
- Replies: 9
- Views: 1007
Re: Animation with dots, lines, bezier curves
Ok guys. I think about this, and I just draw wires as bunch of semitransparent png's. As Per K Grok said. Of course, now my wires shakes with one frequency. But I think, that won't look too bad. Maybe, i do it with my planes too. Or change planes into flat lines png images, and just move his, like c...
- Tue Oct 01, 2019 4:08 am
- Forum: Ren'Py Questions and Announcements
- Topic: Animation with dots, lines, bezier curves
- Replies: 9
- Views: 1007
Re: Animation with dots, lines, bezier curves
names44 , Thanks for the link! But, maybe there exists more suitable examples? About lines, and how to change lines coordinates and animate them? Imperf3kt , first, I try to use mp4 and webm backgrounds. But it not works well (a lot of artifacts). And video backgrounds use a lot of cpu (80 - 90%) w...
- Mon Sep 30, 2019 11:28 am
- Forum: Ren'Py Questions and Announcements
- Topic: Animation with dots, lines, bezier curves
- Replies: 9
- Views: 1007
Animation with dots, lines, bezier curves
Hello! I want to create game with animated BG's. That's example what I want do do - https://www.youtube.com/watch?v=GXTFe4X-u8s I read about ATL a little. And now I can make moving clouds, and I can change transparency level of layers (and make sun glare effects on screen). But how can I made mowing...
- Mon Sep 30, 2019 4:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: re: On Asking Questions
- Replies: 113
- Views: 21071
Re: On Asking Questions
Hello! I want to create game with animated BG's. That's example what I want do do - https://www.youtube.com/watch?v=GXTFe4X-u8s I read about ATL a little. And now I can make moving clouds, and I can change transparency level of layers (and make sun glare effects on screen). But how can I made mowing...