Search found 41 matches

by runs
Mon Mar 26, 2018 6:07 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Close screen on screen itself
Replies: 3
Views: 468

[SOLVED] Close screen on screen itself

I want an imagebutton showing on screen and when the player click on it, close.


My try:

Code: Select all

screen show_item(_item):
  frame:
    imagebutton idle Transform(_item, zoom=0.3)  xpos 0.72 ypos 0.25 action Hide(show_item())
Is it possible a no screen solution maybe? In the script?
by runs
Sun Mar 11, 2018 6:05 am
Forum: Ren'Py Questions and Announcements
Topic: Positioning algorithm (for Math Genius)
Replies: 2
Views: 361

Re: Positioning algorithm (for Math Genius)

Thanks I'll play with it.
by runs
Sat Mar 10, 2018 11:34 am
Forum: Ren'Py Questions and Announcements
Topic: Positioning algorithm (for Math Genius)
Replies: 2
Views: 361

Positioning algorithm (for Math Genius)

https://s9.postimg.org/kv1qfnxrj/lp8jg.jpg Well my card game is almost complete and a cool thing. Now I want to polish it. I've used stackoverflow, but maybe you can help me also. I put the player hand with this screen code. screen my_hand(clickable): $MyHandLen= len(me.deck) $i= 1 hbox xpos 0 ypos...
by runs
Fri Mar 09, 2018 3:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Clickable Imagebutton [Difficult question]
Replies: 4
Views: 723

Re: Clickable Imagebutton [Difficult question]

Finally I solved: screen my_hand(clickable): $MyHandLen= len(me.deck) $i= 0 hbox spacing 0: for item in enumerate(me.deck): $CardName= "img/cards/"+str(item[0])+str(item[1])+".png" $_zoom= round((0.3)*(7.0/MyHandLen),3) $_xpos= ((config.screen_width/MyHandLen)+90-(i*90)) $_ypos= ...
by runs
Tue Mar 06, 2018 7:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Clickable Imagebutton [Difficult question]
Replies: 4
Views: 723

Clickable Imagebutton [Difficult question]

I want to introduce a playing card game in my novel. In python of course. #Card Game Implementation deck= [] firsthand_numcards= 7 # set the number of cards in the first hand def deck_definition(): vals = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A'] suits = ['P', 'C', 'H', 'D']...
by runs
Sun Jul 17, 2016 5:05 am
Forum: Ren'Py Questions and Announcements
Topic: How to show a screen with transitions (and parameters too)
Replies: 2
Views: 547

Re: How to show a screen with transitions (and parameters to

Thanks chocoberry! I've used the first one. Finally I did it with dissolve because the moveintop only last 0.5 seconds on slide= too quick. My code is now: transform show_hide_dissolve: on show: alpha .0 linear .5 alpha 1.0 on hide: alpha 1.0 linear .5 alpha .0 screen comment(comment_text, time= 3):...
by runs
Sat Jul 16, 2016 8:12 pm
Forum: Ren'Py Questions and Announcements
Topic: How to show a screen with transitions (and parameters too)
Replies: 2
Views: 547

How to show a screen with transitions (and parameters too)

I've made a screen at top that autocloses after a time. screen comment(comment_text, time= 3): frame: xcenter 0.5 background RoundRect("#ae426f") hbox: timer time repeat False action [Hide('comment')] text "{size=-3}{color=ffffff}[comment_text]{/color}{/size}" I call it in this w...
by runs
Mon Jul 11, 2016 5:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Problem with cache and sound
Replies: 4
Views: 631

Re: Problem with cache and sound

Thankx, theCodeCat, but that does not solve the problem. I've finally done the trick making a function called from the Shake function: #Shake effect init: python: import math class Shaker(object): anchors = { 'top' : 0.0, 'center' : 0.5, 'bottom' : 1.0, 'left' : 0.0, 'right' : 1.0, } def __init__(se...
by runs
Sun Jul 10, 2016 7:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Problem with cache and sound
Replies: 4
Views: 631

Re: Problem with cache and sound

#Shake effect init: python: import math class Shaker(object): anchors = { 'top' : 0.0, 'center' : 0.5, 'bottom' : 1.0, 'left' : 0.0, 'right' : 1.0, } def __init__(self, start, child, dist): if start is None: start = child.get_placement() # self.start = [ self.anchors.get(i, i) for i in start ] # ce...
by runs
Sun Jul 10, 2016 5:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Problem with cache and sound
Replies: 4
Views: 631

Problem with cache and sound

I have this line: m "My name is John" #here starts to play the sound of the below Shake function. m "Whats up" m "Hi guy" m "Stop" with Shake((0.5, 1.0, 0.5, 1.0), 1.0, dist=5) That Shake function is in the official documentation . Simply I've add a sound to t...
by runs
Sat Jul 09, 2016 6:14 am
Forum: Ren'Py Questions and Announcements
Topic: "if renpy.get_screen("say"):" error
Replies: 2
Views: 796

Re: "if renpy.get_screen("say"):" error

Thanks, very usefull :-)
by runs
Fri Jul 08, 2016 8:15 pm
Forum: Ren'Py Questions and Announcements
Topic: "if renpy.get_screen("say"):" error
Replies: 2
Views: 796

"if renpy.get_screen("say"):" error

I have this code on my game:

Code: Select all

label start:
 "Hi"
 if renpy.get_screen("say"):
And that function returns "False" but the previous say stament created the say screen.
What I doing wrong?
Thanks.
by runs
Wed Jul 06, 2016 10:18 pm
Forum: Creative Commons
Topic: ██ Konett's Sprites [Small Update: 16 July]
Replies: 29
Views: 15650

Re: ██ Konett's Sprites [NEW: MAY 21]

Awesome stuff. Thanks! :D
by runs
Sun Feb 14, 2016 1:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Image in inventory
Replies: 3
Views: 456

Re: Image in inventory

All right, I've used:
image "image"