Search found 269 matches

by SuperbowserX
Tue Jan 10, 2017 11:31 am
Forum: Ren'Py Questions and Announcements
Topic: Any way I can trigger a sound FX everytime the user chooses?
Replies: 9
Views: 1260

Re: Any way I can trigger a sound FX everytime the user choo

So anywhere after init -1 in screens.rpy, place this code:

textbutton activate_sound "acc.wav"
by SuperbowserX
Tue Jan 10, 2017 5:27 am
Forum: Ren'Py Questions and Announcements
Topic: Show Image User Cannot Interrupt
Replies: 9
Views: 1075

Show Image User Cannot Interrupt

Sorry if I'm asking too many questions lol, just a beginner here. Wanted to ask: how can you handle a situation like this. Suppose I want to show an image (it's a pop-up that indicates a user's score is up). But I don't want this image to interrupt the user's actual progression of the game. I don't ...
by SuperbowserX
Tue Jan 10, 2017 3:03 am
Forum: Ren'Py Questions and Announcements
Topic: Any way I can trigger a sound FX everytime the user chooses?
Replies: 9
Views: 1260

Re: Any way I can trigger a sound FX everytime the user choo

Is there a specific place you put that code in in screens.rpy?

And can you provide any more specifics on the syntax? I've googled this quite a bit and can't find a satisfactory answer. I have figured out how to trigger SFX for the main menu but not the ingame choices and that's what I'm looking for.
by SuperbowserX
Tue Jan 10, 2017 2:40 am
Forum: Ren'Py Questions and Announcements
Topic: Any way I can trigger a sound FX everytime the user chooses?
Replies: 9
Views: 1260

Any way I can trigger a sound FX everytime the user chooses?

Rather than trigger the sound effect immediately after every check, is there any way to, every time the user makes any choice from a menu, trigger a sound effect? Also, side question: how can you darken an image that is showing? Anyway to make a Python command that does this (aside from making in a ...
by SuperbowserX
Mon Jan 09, 2017 8:02 pm
Forum: Ren'Py Questions and Announcements
Topic: If I have an accumulating score, can rollback cheat it?
Replies: 8
Views: 1116

If I have an accumulating score, can rollback cheat it?

I am making a game that accumulates points for the user based on the (in)correctness of their decision. Suppose a user is presented with a choice. One choice is good and will boost a variable by 5 for 5 points; the other is bad and will not. The variable is currently 0. If a user makes a good choice...
by SuperbowserX
Mon Jan 09, 2017 3:52 am
Forum: Ren'Py Questions and Announcements
Topic: Anyway to trigger a pop-up graphic on-screen briefly?
Replies: 6
Views: 1994

Re: Anyway to trigger a pop-up graphic on-screen briefly?

That sounds better, to just make a jump statement for the proper protocol to follow. After making this jump statement, will using return return you to exactly where you called that jump statement from (so I can use it anywhere throughout the multi-chapter, multi-.rpy game)?
by SuperbowserX
Mon Jan 09, 2017 2:50 am
Forum: Ren'Py Questions and Announcements
Topic: Anyway to trigger a pop-up graphic on-screen briefly?
Replies: 6
Views: 1994

Re: Anyway to trigger a pop-up graphic on-screen briefly?

Everytime the user got a "correct" choice, I would trigger this in the script. Let me give you an example: menu choice: "What do you do?" "Fight the attacker!": ... "trigger positive" "Run away like a coward!": ... play negative sound effect "Tr...
by SuperbowserX
Mon Jan 09, 2017 1:29 am
Forum: Ren'Py Questions and Announcements
Topic: Anyway to trigger a pop-up graphic on-screen briefly?
Replies: 6
Views: 1994

Anyway to trigger a pop-up graphic on-screen briefly?

I want to program my game so that each time a certain thing happens, there is a certain phrase (I can convert it into an image) that pops up on the screen, and then disappears. It'd fade in, stay on for maybe 2-3 seconds, then fade out, Anyway to do this? Also, I would like to correlate this animati...
by SuperbowserX
Sun Jan 08, 2017 7:50 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Menu Choice if Statements
Replies: 3
Views: 2042

Re: Menu Choice if Statements

Multiple ways to do this but I'd recommend you try to use an incrementing variable. Before you reach "label choices", create a variable (can be called counter or whatever) that, at the end of each of those choices, will increment by one. So it's something like this: if (counter != 4): menu...
by SuperbowserX
Sat Jan 07, 2017 4:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Hi, beginner here. Have a question regarding speaker images
Replies: 8
Views: 709

Re: Hi, beginner here. Have a question regarding speaker ima

You see, side image is the part of say screen, so you can't write it like "say smth at left/right", but you surely can define several side images with different tags (like left/right) that will have the same image but different positions for it, and use them like Ocelot showed. Oh, so you...
by SuperbowserX
Sat Jan 07, 2017 4:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Hi, beginner here. Have a question regarding speaker images
Replies: 8
Views: 709

Re: Hi, beginner here. Have a question regarding speaker ima

That... confused me more lol. That seems more complex and time-consuming than what I was hoping for. I was looking for something more like this: define left position = (x = 0.1, y =1.0) define right position = (x = 0.9, y = 1.0) character1 sad at right "dialogue" The idea is that you save ...
by SuperbowserX
Sat Jan 07, 2017 3:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Hi, beginner here. Have a question regarding speaker images
Replies: 8
Views: 709

Re: Hi, beginner here. Have a question regarding speaker ima

Thank you. That command works well. Anyway to determine left/right aligning with side images? I want two conversing characters to appear on opposite sides. Is there an easyway I can shortcut a left/right alignment (i.e. maybe initating another "$" variable thing?) For reference, this is wh...
by SuperbowserX
Sat Jan 07, 2017 3:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Hi, beginner here. Have a question regarding speaker images
Replies: 8
Views: 709

Hi, beginner here. Have a question regarding speaker images

Hi, I just started using Ren'Py and it's a great tool. Just have a question regarding character images. With the VN I am developing, the speaker's portrait only appears when they are speaking. So I have to code like this: show annashocked at left anna "({b}Oh my God{/b}... Where am I?! How did ...