Search found 85 matches

by newbiemate
Tue Jan 02, 2018 1:45 am
Forum: Ren'Py Questions and Announcements
Topic: What displayable can render image and text in screen?
Replies: 2
Views: 863

What displayable can render image and text in screen?

I have an image that is 50x100 pixels that I've drawn myself. In the game, I have some text that will range from 1 to 20 depending on my conditions, and I'd like to render the number on the image I've drawn. I looked at the Text displayable ( https://www.renpy.org/doc/html/screens.html#text ), but i...
by newbiemate
Sat Dec 23, 2017 1:32 am
Forum: Ren'Py Questions and Announcements
Topic: Using Transforms to move in images from left and right screen?
Replies: 1
Views: 2530

Using Transforms to move in images from left and right screen?

How can I show two images where one moves in from the left and one moves in from the right at the same time? Then pauses for a few seconds, then moves out of the screen left and right respectively? I defined my transforms: init -1: transform tt_left: xpos 100 ypos 200 easein 0.5 transform tt_right: ...
by newbiemate
Thu Dec 21, 2017 3:50 am
Forum: Ren'Py Questions and Announcements
Topic: Changing image on imagebutton on click, and then disappear effect?
Replies: 2
Views: 360

Re: Changing image on imagebutton on click, and then disappear effect?

I added selected_hover and selected_idle: screen myscreen(): imagebutton: idle "images/a_idle.png" hover "images/a_hover.png" selected_hover "images/a_selected.png" selected_idle "images/a_selected.png action Return("clicked") xpos 100 ypos 100 However if...
by newbiemate
Wed Dec 20, 2017 4:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Can I declare conditions inside a displayable attribute?
Replies: 2
Views: 405

Can I declare conditions inside a displayable attribute?

For any displayable in screen language, is it possible to set conditions on the attributes directly on the displayable? Example: mousearea: area(x,y,w,h) hovered if x==1 and y==1: Show("other_screen") elif x==2 and y==2: Show("new_screen") else: Show("misc_screen") # an...
by newbiemate
Wed Dec 20, 2017 3:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Changing image on imagebutton on click, and then disappear effect?
Replies: 2
Views: 360

Changing image on imagebutton on click, and then disappear effect?

I have an imagebutton displayed in my screen: screen myscreen(): imagebutton: idle "images/a_idle.png" hover "images/a_hover.png" action Return("clicked") xpos 100 ypos 100 When the player hovers over the imagebutton, the image switches to "a_hover.png" which ...
by newbiemate
Tue Dec 19, 2017 3:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Why does calling another label execute twice?
Replies: 5
Views: 651

Re: Why does calling another label execute twice?

Ah gotcha, it just proceeds to the next line if there's no return. Thanks!
by newbiemate
Tue Dec 19, 2017 2:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Why does calling another label execute twice?
Replies: 5
Views: 651

Re: Why does calling another label execute twice?

Ah yeah sorry. The print order is wrong with the original code I posted, like you said. I was modifying some stuff and copy-pasted the wrong one. I fixed it now. I'm being dumb... but I'm still a bit confused? In regular python, I can have something like: do_one() def do_one(): print "hi" ...
by newbiemate
Tue Dec 19, 2017 2:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Are nested labels considered global or local?
Replies: 5
Views: 2051

Re: Are nested labels considered global or local?

Can you explain why calling a label inside another label is bad? I was looking over this example of a game called "Group Battle Game": https://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=18047&start=15#p395926 There, he declares: label battle_game_2: # some code.... #### Main ba...
by newbiemate
Tue Dec 19, 2017 1:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Are nested labels considered global or local?
Replies: 5
Views: 2051

Are nested labels considered global or local?

Do local labels always have a "." prefixed? The example they gave is: label global_label: "Inside a global label.." label .local_name: "..resides a local one." jump .local_name But I have seen some example code that have a label declared inside a global label: label glo...
by newbiemate
Tue Dec 19, 2017 1:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Why does calling another label execute twice?
Replies: 5
Views: 651

Why does calling another label execute twice?

I have this simple script:

Code: Select all

label start:
    call do_one

label do_one:
    $ print 'hi'
    $ print "yo"
    call do_two



label do_two:
    $ print "sup"
This results in:

Code: Select all

hi
yo
sup
sup
hi
yo
sup
sup
Why does each label print twice when called?