Search found 132 matches
- Tue Aug 20, 2019 7:18 am
- Forum: Ren'Py Questions and Announcements
- Topic: Random number slows down game
- Replies: 8
- Views: 922
Random number slows down game
All right, so this is something I've been struggling with. Let's say I want a random number like this: $ randNumb = renpy.random.randint(1, 2) That works fine, but takes a split second, causing a delay. Now I'm currently coding something that requires a lot of random outcomes, which is starting to a...
- Mon Aug 05, 2019 6:12 am
- Forum: Ren'Py Questions and Announcements
- Topic: Fast screen shake / vibrate
- Replies: 1
- Views: 455
Fast screen shake / vibrate
I know how to do a vpunch or hpunch, but I'm looking to create a custom one. One that slightly makes the game vibrated horizontally.
I was planning on putting everything into a transform and shake the different elements that way, but maybe there's an easier way?
I was planning on putting everything into a transform and shake the different elements that way, but maybe there's an easier way?
- Sat Jul 13, 2019 2:29 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Animating based of previous given location
- Replies: 2
- Views: 493
Re: [SOLVED] Animating based of previous given location
Thank you very much! This'll help me clean up my code a bit.
- Fri Jul 12, 2019 5:36 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Animating based of previous given location
- Replies: 2
- Views: 493
[SOLVED] Animating based of previous given location
Right, let me try and explains this the best I can. I'd like to re-use an animation but the starting point of the animation needs to change. So for example: default xposAni = 50 default yposAni = 50 transform itemDrop: xpos = xposAni ypos = yposAni linear 0.3 ypos -20 linear 0.3 ypos +20 linear 0.6 ...
- Thu Jun 27, 2019 8:20 am
- Forum: Ren'Py Questions and Announcements
- Topic: Imagebutton that jumps to next line of code
- Replies: 3
- Views: 581
- Thu Jun 27, 2019 8:15 am
- Forum: Ren'Py Questions and Announcements
- Topic: Imagebutton that jumps to next line of code
- Replies: 3
- Views: 581
Imagebutton that jumps to next line of code
Hopefully this will be pretty simple. There comes a time in my game that the player has acces to an imagebutton which only purpose is to jump to the next line of code. Something like this: screen button1: vbox xalign 0.5 yalign 0.8: imagebutton: idle "button1.png" hover "button1-hover...
- Mon Jun 03, 2019 7:13 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Ren'py archive exceptions
- Replies: 3
- Views: 676
Re: Ren'py archive exceptions
Aaah, it's that simple? Thanks lads.
- Mon Jun 03, 2019 4:04 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Ren'py archive exceptions
- Replies: 3
- Views: 676
[Solved] Ren'py archive exceptions
Hi all, so I know you can archive files in your game by doing this: build.classify('game/**.png', 'archive') Now all .png files get archives. However I'd like to make an exception for my /mods folder, which contain .png files that can be overwritten by modded content. Your help is appreciated!
- Sat May 18, 2019 10:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Having text show up on a imagebutton hover
- Replies: 5
- Views: 547
Re: Having text show up on a imagebutton hover
Worked like a charm. Thanks guys. 1 more short question, how do I rotate text?
isn't working.
Code: Select all
rotate 10
- Thu May 16, 2019 6:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Having text show up on a imagebutton hover
- Replies: 5
- Views: 547
Re: Having text show up on a imagebutton hover
Thank you! I'll try it out tomorrow!
- Wed May 15, 2019 1:24 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Having text show up on a imagebutton hover
- Replies: 5
- Views: 547
[Solved] Having text show up on a imagebutton hover
So I'm coding a simple imagebutton that looks like this: https://i.imgur.com/dI1DGio.jpg vbox xalign 0.08 yalign 0.68: imagebutton: idle "mission/enemy/bg1Tar1.png" hover "mission/enemy/bg1Tar1-hover.png" action SetVariable("combatTarget", 2), Jump("targetInteract&...
- Mon Mar 25, 2019 11:07 am
- Forum: Ren'Py Questions and Announcements
- Topic: Script running in background
- Replies: 3
- Views: 407
Re: Script running in background
Hi there stray, thanks for your suggestion! So unfortunately that won't work exactly as I hoped. It's important that I can update variables. That way I can check with an if statement to see if the guard is currently looking at the player. For example: if guardDirection == 1: "You managed to sne...
- Sat Mar 23, 2019 12:46 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Script running in background
- Replies: 3
- Views: 407
Script running in background
Not sure if this is possible, but I don't think this is too hard of a question. How do I make a script that continues playing / repeating while the rest of the game continues as normal? I'd basically like to add something as simple as this: default guardDirection = 1 # 1 is looking left, 2 is lookin...
- Fri Mar 15, 2019 5:01 am
- Forum: Ren'Py Questions and Announcements
- Topic: Rotating image from previous point
- Replies: 7
- Views: 755
Re: Rotating image from previous point
Hey Matalla,
Thank you for your reply. That was my original idea aswell, but this gives an error message.
Thank you for your reply. That was my original idea aswell, but this gives an error message.
- Thu Mar 14, 2019 6:12 am
- Forum: Ren'Py Questions and Announcements
- Topic: Rotating image from previous point
- Replies: 7
- Views: 755
Re: Rotating image from previous point
Hey M-77 thank you for your reply! So I'll give you a bit more detail on what I'm working on. The turning image is suppose to be the chamber of a revolver. https://i.imgur.com/Asee8ql.jpg Everytime I click, I need it to rotate -60 degrees, which means it has to remember what rotation it's on current...