Search found 121 matches

by Glazed Donuts
Thu Feb 17, 2011 9:12 pm
Forum: Ren'Py Questions and Announcements
Topic: "clicked" no longer working...
Replies: 3
Views: 437

"clicked" no longer working...

Eversince I updated to the new version of RenPy, this line no longer works: $ ui.autobar(100, old_score, score, 30.0, left_bar=Frame("sozai/ui/barBG.png", 5, 5), right_bar=Frame("sozai/ui/barFG.png", 5, 5) , thumb="sozai/ui/barICO.png", xmaximum=100, clicked=ui.returns(False) ) I get an error that s...
by Glazed Donuts
Thu Feb 17, 2011 8:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Drag/Drop Questions (and a question about screens)
Replies: 1
Views: 405

Drag/Drop Questions (and a question about screens)

How can I make it so that you will need to drag/drop X-number of graphics scattered on the screen into certain areas on the screen? I was trying to work off the example in the documentation, however, as soon as you drag/drop one graphic, then the screen exits. When using the Screen methods, is it po...
by Glazed Donuts
Wed Feb 16, 2011 3:38 pm
Forum: Ren'Py Questions and Announcements
Topic: Drag_Drop error
Replies: 3
Views: 578

Re: Drag_Drop error

Alright thank you! That seemed to be the problem!
by Glazed Donuts
Wed Feb 16, 2011 10:48 am
Forum: Ren'Py Questions and Announcements
Topic: Drag_Drop error
Replies: 3
Views: 578

Drag_Drop error

I copied and pasted this code from the documentation to see how the drag_drop feature worked (see below): init python: def detective_dragged(drags, drop): if not drop: return store.detective = drags[0].drag_name store.city = drop.drag_name return True screen send_detective_screen: # A map as backgro...
by Glazed Donuts
Mon Jan 24, 2011 12:44 pm
Forum: Ren'Py Questions and Announcements
Topic: Adding a timer to a menu
Replies: 5
Views: 985

Re: Adding a timer to a menu

Eh? There's only one timer going on. When the player is on a particular screen, I wanted the timer (level_timer) to start. They would have x-seconds to interact with the screen until another message/image button pops up that prompts them to go to the next screen (or a button that pops up that they c...
by Glazed Donuts
Mon Jan 24, 2011 12:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Adding a timer to a menu
Replies: 5
Views: 985

Re: Adding a timer to a menu

Sorry for necroposting, but I had a similar question to the OP when I did a forum search. Rather than add a timer to the default menu choices, I wanted to know if it's possible to apply the timer to the entire screen as a whole. I tried out the above code and it's something similar to what I'm tryin...
by Glazed Donuts
Fri Jan 21, 2011 11:14 pm
Forum: Ren'Py Questions and Announcements
Topic: help with ui.frame and ui.imagebutton
Replies: 12
Views: 3545

Re: help with ui.frame and ui.imagebutton

Hmm... I'm confused. Where is the code in which the timer automatically goes and ignores the mouse clicks? Also, is the keyboard ignored while the timer is going, as well?
by Glazed Donuts
Fri Jan 21, 2011 4:59 pm
Forum: Ren'Py Questions and Announcements
Topic: help with ui.frame and ui.imagebutton
Replies: 12
Views: 3545

Re: help with ui.frame and ui.imagebutton

Black_Saber: I have a question about the timer you used in your minigame. Are you able to click around the screen and do things while the timer is still ticking in the background? I had a problem with the timer suddenly stopping and going straight to the 'endgame' as soon as you click the mouse butt...
by Glazed Donuts
Sun Dec 12, 2010 1:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Getting the X, Y position of a moving image on the screen
Replies: 20
Views: 2197

Re: Getting the X, Y position of a moving image on the scree

Adding the $renpy.pause() function works, however, the timer stops once the mouse button is clicked anywhere on the screen. What I was trying to do was to have the user be able to interact on the screen during the 10 seconds, so they can click on things and the timer is visible on the top of the scr...
by Glazed Donuts
Sun Dec 12, 2010 12:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Getting the X, Y position of a moving image on the screen
Replies: 20
Views: 2197

Re: Getting the X, Y position of a moving image on the scree

Actually, I think I found out what I was doing wrong. I had to put this in my custom autobar script: ui.autobar(100, old_score, score, 10.0, left_bar=Frame("1.png", 5, 5), right_bar=Frame("2.png", 5, 5) , thumb="3.png", xmaximum=100 ) #it takes 10 seconds for the gauge to fill up Then in the 'show s...
by Glazed Donuts
Sun Dec 12, 2010 12:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Getting the X, Y position of a moving image on the screen
Replies: 20
Views: 2197

Re: Getting the X, Y position of a moving image on the scree

Thank you, PyTom! This was exactly what I was trying to do!! And no, there is no dialogue for the timer I was trying to make. It was a mini game where they have to click objects on the screen in a limited time. THANK YOU SO MUCH!! I noticed that this affects only the default bar. Can this be used fo...
by Glazed Donuts
Sat Dec 11, 2010 2:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Getting the X, Y position of a moving image on the screen
Replies: 20
Views: 2197

Re: Getting the X, Y position of a moving image on the scree

THANK YOU!
This is EXACTLY what I needed! :D

Will I be able to implement a timer for this so while the user is clicking and interacting with other parts of the screen, then the gauge is moving up slowly in the background?
by Glazed Donuts
Sat Dec 11, 2010 10:45 am
Forum: Ren'Py Questions and Announcements
Topic: Getting the X, Y position of a moving image on the screen
Replies: 20
Views: 2197

Re: Getting the X, Y position of a moving image on the scree

Awesome! Thank you so much!! It works great!!

One last question: Can I change the size of the autobar? Right now, it extends all the way across the screen.
by Glazed Donuts
Sat Dec 11, 2010 10:21 am
Forum: Ren'Py Questions and Announcements
Topic: Getting the X, Y position of a moving image on the screen
Replies: 20
Views: 2197

Re: Getting the X, Y position of a moving image on the scree

Where do I add that line? I tried adding it to the ui.autobar block, but it's still the default gauge when I run the program. This is what I did: init python: def overlay(): global old_score ui.hbox() ui.text("Score: ") left_bar=Frame("1.png", 5, 5) right_bar=Frame("2.png", 5, 5) thumb="thumb-test.p...
by Glazed Donuts
Fri Dec 10, 2010 11:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Getting the X, Y position of a moving image on the screen
Replies: 20
Views: 2197

Re: Getting the X, Y position of a moving image on the scree

Thank you! I tried it out and it's great! Can I change the autobar and the gauge into an actual image? Like a picture of a thermometer with a red image/gauge overlay moving up?