Search found 107 matches

by Mild Curry
Sun Sep 25, 2011 12:09 am
Forum: Ren'Py Questions and Announcements
Topic: textbutton with multiple actions?
Replies: 5
Views: 733

Re: textbutton with multiple actions?

@DrathFox: No problem. :)


@Soraminako: Haha, "background" is just a variable I made up for illustration. It's not going to work unless you set up something for it.

You'd probably want to make the background a ConditionSwitch or something if you were going to use that.
by Mild Curry
Sat Sep 24, 2011 11:34 pm
Forum: Ren'Py Questions and Announcements
Topic: textbutton with multiple actions?
Replies: 5
Views: 733

Re: textbutton with multiple actions?

Very simple. All buttons accept lists of actions. Looks like this.

Code: Select all

textbutton _("Menu Theme") action [mr.Play("menu.ogg"), SetVariable("background", "trees"), Play("voice", "Bob")]
Just enclose all the actions in brackets and put commas in between them.
by Mild Curry
Sat Sep 24, 2011 5:04 am
Forum: Ren'Py Questions and Announcements
Topic: Setting limits on variables[solved]
Replies: 3
Views: 485

Setting limits on variables[solved]

I'm trying to make a simple archery minigame in which the player has to position the bow correctly to hit the target. The positioning works great, but I'd like it if the variable onscreen could stay between certain numbers so that the graphics don't go out of their intended area. I've tried what you...
by Mild Curry
Fri Sep 23, 2011 11:45 pm
Forum: General Discussion
Topic: Corrupt a Wish
Replies: 364
Views: 19732

Re: Corrupt a Wish

Granted. Mankind now lives in peace, but alienkind soon invades and easily takes over this world.

I wish I could speak fluent Spanish (and still retain my English!).
by Mild Curry
Fri Sep 23, 2011 11:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Calling screens from another screen
Replies: 2
Views: 393

Re: Calling screens from another screen

I don't think "Jump" works for screens. Would just showing the next screen work? You could try using "Show" instead. http://www.renpy.org/doc/html/screen_actions.html#Show If that doesn't suit your purposes, you could also try something like this (although there's probably a less roundabout way): sc...
by Mild Curry
Fri Sep 16, 2011 1:44 am
Forum: General Discussion
Topic: Corrupt a Wish
Replies: 364
Views: 19732

Re: Corrupt a Wish

You already do. He's just a really good ninja, and kind of a lazy butler. So he never gets anything done, but he's always hidden so you can't yell at him.

I wish I had a tame tiger to be my best friend.
by Mild Curry
Mon Sep 12, 2011 11:18 pm
Forum: General Discussion
Topic: Corrupt a Wish
Replies: 364
Views: 19732

Re: Corrupt a Wish

Granted. You forget every bit of media that has ever passed into your brain. All your memories of books, TV, movies, games, music--everything--are gone, and you have no idea what anyone's talking about anymore.

I wish I could come up with the best thesis ever for my paper.
by Mild Curry
Fri Sep 09, 2011 3:44 am
Forum: Ren'Py Questions and Announcements
Topic: Shooting as mini-games
Replies: 7
Views: 1314

Re: Shooting as mini-games

Oh! Okay. Sorry, I guess it does require some explaining...^^' $ xx = renpy.random.randint(50, 750) $ yy = renpy.random.randint(50, 550) Those control the x (horizontal) and y (vertical) position of the target. Right now, it just chooses a random number from basically any position onscreen (with a 5...
by Mild Curry
Thu Sep 08, 2011 11:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Shooting as mini-games
Replies: 7
Views: 1314

Re: Shooting as mini-games

I made a very, very simple shooting game for the project I'm working on (and will maybe never finish orz) so I'll post the code here--maybe it will help you get some ideas? Basically, it just makes an imagebutton which jumps around onscreen for ten seconds, and counts the number of times the user ha...
by Mild Curry
Thu Sep 08, 2011 4:26 am
Forum: General Discussion
Topic: Corrupt a Wish
Replies: 364
Views: 19732

Re: Corrupt a Wish

Granted. You stay home from school. Nothing happens to you, but your school has the most epic festival/concert/dinosaur joust ever that day, and you regret skipping for the rest of your life.

I wish I could stop staying up so late.
by Mild Curry
Sat Aug 27, 2011 5:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Disabling arrow keys in screen
Replies: 1
Views: 405

Disabling arrow keys in screen

I have an imagebutton that I want to be activated only by a mouse click, as in, I don't want to be able to highlight it with the arrow keys, like normally happens. I tried this: key "K_LEFT" action None but it returned the error "Exception: Action is required in ui.key." So, I went hunting through t...
by Mild Curry
Sat Aug 27, 2011 1:29 am
Forum: General Discussion
Topic: Corrupt a Wish
Replies: 364
Views: 19732

Re: Corrupt a Wish

Granted. But your backgrounds are so awesome, you are never able to make sprites beautiful enough to do them justice, and your art is forever skewed. I wish I had motivation. <also, LVUER, you reach the end of the world and are alone and happy, until you play through every awesome game that's ever e...
by Mild Curry
Fri Aug 26, 2011 7:37 pm
Forum: General Discussion
Topic: Corrupt a Wish
Replies: 364
Views: 19732

Re: Corrupt a Wish

Granted. You are now an ostrich on a farm. You will become delicious ostrich burgers.

I wish I didn't have to wear glasses.
by Mild Curry
Wed Aug 24, 2011 12:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Setting list variable with screen language
Replies: 10
Views: 1857

Re: Setting list variable with screen language

Anima- It doesn't recognize 'entry', so far as I can tell.

But the problem's solved anyway. I ended up constructing a little workaround that will suit my purposes. Not the cleanest thing ever, but at least it works.

Thanks for all the help, guys. I'm learning things.
by Mild Curry
Wed Aug 24, 2011 12:53 am
Forum: Ren'Py Questions and Announcements
Topic: Setting list variable with screen language
Replies: 10
Views: 1857

Re: Setting list variable with screen language

Okay. After looking up some stuff, if I'm understanding this correctly, a screen variable is defined inside the screen, and I'd need something with "ToggleScreen" to change it, and a global variable is defined outside the screen, and I'd need an action with just "Toggle" to change it. (assuming thes...