Search found 15 matches
- Thu Jul 07, 2016 1:57 pm
- Forum: Ren'Py Questions and Announcements
- Topic: action If()
- Replies: 5
- Views: 854
Re: action If()
Okay, tried that, didn't work. Is it possible to make a function for if statement you want to make, and then call the function as the action instead?
- Thu Jul 07, 2016 11:41 am
- Forum: Ren'Py Questions and Announcements
- Topic: action If()
- Replies: 5
- Views: 854
Re: action If()
*Newbie Here* Would this work? I'm going to test it in a bit, but or seems to work perfectly fine for other if statements - seems logical that it would continue to work here.
Code: Select all
action If((something) or (something) or (something), do something)) Else (do something)
- Wed Jul 06, 2016 6:17 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with Imagebuttons - Variable changed when Hovered
- Replies: 22
- Views: 3706
Re: Help with Imagebuttons - Variable changed when Hovered
Can't believe I missed that - I guess I just got excited when it still worked :p. Either way, updated the code with your advice. Took me a while to figure out how to make the vbox invisible, but that was entirely a reading comprehension error on my part. Thank you so much for the help! Just for comp...
- Wed Jul 06, 2016 3:23 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with Imagebuttons - Variable changed when Hovered
- Replies: 22
- Views: 3706
Re: Help with Imagebuttons - Variable changed when Hovered
Ok, gonna be a bit late, but I couldn't wait to try it out. Works perfectly - I ended up doing this: "hope == True", "menuHovering", "hope == False", "menuIdle.jpg") default hope = False screen main_menu(): # This ensures that any other menu screen is replaced...
- Wed Jul 06, 2016 3:09 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with Imagebuttons - Variable changed when Hovered
- Replies: 22
- Views: 3706
Re: Help with Imagebuttons - Variable changed when Hovered
Thank you, that looks awesome! I don't have time to test it right now, but I'll let you know how it goes a little later on. One thing about the variables, and the reason I had 5 - I found that if all of the buttons had the same variable to work from, it would end up permanently false. Even if you ge...
- Wed Jul 06, 2016 2:33 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with Imagebuttons - Variable changed when Hovered
- Replies: 22
- Views: 3706
Re: Help with Imagebuttons - Variable changed when Hovered
Yep. Just causes the animation to run through once, and never again, even upon re-hovering.
- Wed Jul 06, 2016 2:03 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with Imagebuttons - Variable changed when Hovered
- Replies: 22
- Views: 3706
Re: Help with Imagebuttons - Variable changed when Hovered
Okay, so I fixed the lag entirely using $ renpy.start_predict("menuHovering") in a splashsreen, for .5 secs.! Now I just need to figure out how to reset animations...
- Wed Jul 06, 2016 1:16 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with Imagebuttons - Variable changed when Hovered
- Replies: 22
- Views: 3706
Help with Animation on Hover
Okay, after a bit more research and a lot more coffee, I've managed to do it. Main Menu buttons toggle between two forms of main menu, changing the background from one to the other based a variable edited by hover. Whew! There's still a bit of oddity there that I'm having trouble figuring out though...
- Wed Jul 06, 2016 9:26 am
- Forum: Ren'Py Questions and Announcements
- Topic: Help with Imagebuttons - Variable changed when Hovered
- Replies: 22
- Views: 3706
Re: Help with Imagebuttons - Variable changed when Hovered
Also, figured out why my variable wasn't working. I guess I needed to sleep on it, because it was staring me right in the face... Ugh. Had every button unhovered toggling off the same variable. Still, glad I caught it eventually, lol.
- Wed Jul 06, 2016 9:22 am
- Forum: Ren'Py Questions and Announcements
- Topic: Help with Imagebuttons - Variable changed when Hovered
- Replies: 22
- Views: 3706
Re: Help with Imagebuttons - Variable changed when Hovered
you can change the variable but you can't update anything with it inside the main menu for some reason. I guess it has something to do with how the main menu is coded. Well, that's legitimately disappointing! I'll try to find some way around to do what I'm thinking later on. Thank you both for your...
- Wed Jul 06, 2016 9:16 am
- Forum: Ren'Py Questions and Announcements
- Topic: Help with Imagebuttons - Variable changed when Hovered
- Replies: 22
- Views: 3706
Re: Help with Imagebuttons - Variable changed when Hovered
it seems you like to keep the thing you want to do with the variable as a surprise or something. I truly wasn't meaning to. My thinking was that it really didn't matter what I was trying to achieve with the variable, if I couldn't even get it to change states. As for the intended use, I've found co...
- Wed Jul 06, 2016 8:59 am
- Forum: Ren'Py Questions and Announcements
- Topic: Help with Imagebuttons - Variable changed when Hovered
- Replies: 22
- Views: 3706
Re: Help with Imagebuttons - Variable changed when Hovered
And, as a quick test, I added $ hope1 = True to the start label. That toggles it just fine.
- Wed Jul 06, 2016 8:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: Help with Imagebuttons - Variable changed when Hovered
- Replies: 22
- Views: 3706
Re: Help with Imagebuttons - Variable changed when Hovered
End result of the code would be the variable is set to True when hovered over, and False when not, while retaining the usual behavior of hover/idle. As for declaring defaults, I've got it right where I've declared the images for the game - near the top of the script.rpy file. After scouring the foru...
- Wed Jul 06, 2016 8:18 am
- Forum: Ren'Py Questions and Announcements
- Topic: Help with Imagebuttons - Variable changed when Hovered
- Replies: 22
- Views: 3706
Re: Help with Imagebuttons - Variable changed when Hovered
Tried both. There's even remnants of it in the code sample above. In fact, SetVariable not working after many different tries of things was why I ended up trying SetScreenVariable ![Sad :(](./images/smilies/icon_sad.gif)
![Sad :(](./images/smilies/icon_sad.gif)
- Wed Jul 06, 2016 4:20 am
- Forum: Ren'Py Questions and Announcements
- Topic: Help with Imagebuttons - Variable changed when Hovered
- Replies: 22
- Views: 3706
Help with Imagebuttons - Variable changed when Hovered
I'm a beginner, and while I've been picking up most of it pretty well, I've been utterly stumped. I've set up my main menu to use imagebuttons, which worked perfectly, but I was hoping to add a background change, or something of the sort when hovering over one of the buttons. Here's a snippet of how...