Search found 3097 matches

by Alex
Sun Jul 09, 2023 9:53 am
Forum: Ren'Py Questions and Announcements
Topic: Player controlled sprites?
Replies: 1
Views: 125

Re: Player controlled sprites?

Hi there! I was wondering if it's possible to have a sprite be controlled by the player and if yes, how? ... This might give you an idea how you can do it: https://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=52871 https://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=59039 https://lemma...
by Alex
Sun Jul 09, 2023 7:15 am
Forum: Ren'Py Questions and Announcements
Topic: My Ninja Way: need help with the correctness of writing lines of code
Replies: 9
Views: 620

Re: My Ninja Way: need help with the correctness of writing lines of code

... So, what's wrong with this code? How does player reach the label 'house_street' (label was called or jumped to) or is it the main location? When player reaches the 'house_yard' (s)he can return back to 'house_street' without losing energy - is this correct? If player choose to wait at 'house_ya...
by Alex
Sat Jul 08, 2023 6:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Moving Screen Frame Along With Mouse Position
Replies: 1
Views: 258

Re: Moving Screen Frame Along With Mouse Position

... Check this - https://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=47205 Or try to play some with this sample # transform to show/hide tooltip frame transform frame_anim_tr(t=0.5): on show: alpha 0.0 linear t alpha 1.0 on hide: linear t alpha 0.0 # transform to positioning tooltip frame tr...
by Alex
Thu Jul 06, 2023 2:48 pm
Forum: Ren'Py Questions and Announcements
Topic: My Ninja Way: need help with the correctness of writing lines of code
Replies: 9
Views: 620

Re: My Ninja Way: need help with the correctness of writing lines of code

cuteankle wrote: Thu Jul 06, 2023 4:14 am ...
What do you have at the end of 'house_street' and 'house_yard' labels?
If it's the 'return' statement then game jump to main menu is correct. So, either use 'jump newday' at the end of labels, or call 'house_street' and 'house_yard' labels instead of jumping to them.
by Alex
Mon Jul 03, 2023 3:28 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Question about viewport edge
Replies: 6
Views: 424

Re: Question about viewport edge

vp = renpy.get_widget('night_time', 'my_vp') if vp.xadjustment.value < 1: #looking at left imagebutton "arrowLeft" action SetVariable("view", "window") Because i'm doing it in a "screen", I can't create variables or change their value as in the first line in ...
by Alex
Fri Jun 30, 2023 2:01 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Question about viewport edge
Replies: 6
Views: 424

Re: Question about viewport edge

It looks like what I need but I don't understand how it works... Can someone explain what should I use and what does things do ? Well... vp = renpy.get_widget('vp_scr', 'my_vp') gets the viewport's bar from the screen, so later you could use it to get its value. if vp.yadjustment.value < vp.yadjust...
by Alex
Fri Jun 30, 2023 1:49 pm
Forum: Ren'Py Questions and Announcements
Topic: help... asking about variable
Replies: 3
Views: 259

Re: help... asking about variable

This might be interesting for you - viewtopic.php?f=8&t=52548#p499157
by Alex
Thu Jun 29, 2023 3:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Problem With Showing and Hiding a Screen With a Custom Transition
Replies: 2
Views: 284

Re: Problem With Showing and Hiding a Screen With a Custom Transition

... Try it like # Achievement Pop-up screen achievementpopupscreen(): frame: at gotachievement # <--- xpos 0.5 ypos 0.5 vbox: use achievementx_displayable # Call Function for Achievement label achievement_popup: show screen achievementpopupscreen "Hi!" hide screen achievementpopupscreen &...
by Alex
Thu Jun 29, 2023 3:37 pm
Forum: Ren'Py Questions and Announcements
Topic: How Do I Make a Fading Timer From Left to Right
Replies: 6
Views: 334

Re: How Do I Make a Fading Timer From Left to Right

galaga_ghost wrote: Wed Jun 28, 2023 11:48 pm okay I tried it and the bar just stopped showing and it missed my choices of color and background. I don't know if I did it right.
What's your code looks like?
by Alex
Thu Jun 29, 2023 3:35 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]How to both react with textbox and screen?
Replies: 2
Views: 214

Re: How to both react with textbox and screen?

...I tried Jump from screen action but when textbox showed screen was hidden You need to 'show' screen instead of 'call' it. And you can use ui.interact() to wait for player's interaction with game. https://www.renpy.org/doc/html/screens.html#screen-statements https://www.renpy.org/doc/html/screen_...
by Alex
Thu Jun 29, 2023 3:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Automating keysym for a matrix
Replies: 1
Views: 153

Re: Automating keysym for a matrix

... Try to store your matrix as a list of lists, like m = [ [1, 2, 3]. [4. 5. 6]. [7. 8. 9]. ] So, in this rectangular game field you'll be able to use x (horizontal axis) and y (vertical axis) for player position. The place (position) on this field would be m[y][x]. Also, you'll be able to check t...
by Alex
Wed Jun 28, 2023 5:53 pm
Forum: Ren'Py Questions and Announcements
Topic: How Do I Make a Fading Timer From Left to Right
Replies: 6
Views: 334

Re: How Do I Make a Fading Timer From Left to Right

galaga_ghost wrote: Wed Jun 28, 2023 3:37 pm ...The code said it's dissolve but it just kinda does more of a chop when time goes down.
Try 'Timed Choice Menus' instead - viewtopic.php?f=51&t=47328