Added a timer. If the time is up, the screen close and jump to the label loss. The default is 60 seconds. timer code (add to screen puzzle): timer 1.0 repeat True action If(timex > 0, SetVariable("timex", timex - 1), [Hide ("puzzlle"), Jump ("hud_end")]) bar value AnimatedValue(value=timex, range=60, delay=1.0) xpos 1150 ypos 1015 xmaximum 525 I apologize for my English :)
@LVKoG3 ай бұрын
Needed this part as well…thanks my friend
@codemonkey5519 Жыл бұрын
Thank you! I've been wanting more tutorials involving drag and drop systems
@Jimsonization5 ай бұрын
This is fantastic! Thank you, thank you, thank you!
@steamycarafe11 ай бұрын
Thank you so much for this **excellent** tutorial!!
@mlfrogit5058 Жыл бұрын
wow these tutorials are great keep it up
@essRenPyTutorials Жыл бұрын
Glad to hear it! Thanks for your comment. 😁
@anatoliyadonin8013 Жыл бұрын
Thanks for the tutorial, it works great
@Oilhapi14 күн бұрын
HI!! i love your tutorials they always helped me lots! but I also have an issue with the error index out of range :(( it has something to do with the pos initial_piece_coordinates[i] but I'm not sure what to do to fix it. I made sure the page_pieces and piece_coordinates are perfectly ok so I can't find the problem why this won't work.
@emanuele46788 ай бұрын
Hello,i was trying to made this minigame,the only change is the number of pieces and the size of my puzzle but i got this error releated to the screen setup....how could i solve it ? I think to follow all instructions,all is explaining very well 👍🏼 While running game code: File "game/script.rpy", line 64, in script call screen reassemble_puzzle File "renpy/common/000statements.rpy", line 668, in execute_call_screen store._return = renpy.call_screen(name, *args, **kwargs) File "game/script.rpy", line 23, in execute screen reassemble_puzzle: File "game/script.rpy", line 23, in execute screen reassemble_puzzle: File "game/script.rpy", line 31, in execute draggroup: File "game/script.rpy", line 41, in execute for i in range(page_pieces): File "game/script.rpy", line 42, in execute drag: File "game/script.rpy", line 42, in keywords drag: File "game/script.rpy", line 47, in pos piece_coordinates[i] IndexError: list index out of range
@mcdokidoki Жыл бұрын
Hello, I loved the video a lot, it's a pity I don't know English, although soon I'll use a translator to understand it, although I would like to know something, does this procedure serve Android ports?
@essRenPyTutorials Жыл бұрын
I haven't tested the code on Android, but I don't believe there should be any issues.
@anatoliyadonin8013 Жыл бұрын
@@essRenPyTutorials Tell me please When you assemble the puzzle for the second time nothing happens Is there any way to reset the functions? I set $ finished_pieces = 0 at the end of the game, but it doesn't help
@anatoliyadonin8013 Жыл бұрын
@@essRenPyTutorials Resetting the variable works $ finished_pieces = 0 :) I just tested the wrong save
@MXaliant9 ай бұрын
What if I want them to be snapped into the wrong places, too? And how do I add a button that when pressed will check if the finished results are correctly placed?
@SolarisDreams5 ай бұрын
Hello, this tutorial was really useful to create a similar puzzle in my visual novel. However, I'm running into an issue where for some reason only 1 draggable item is snapping occasionally and the other times just won't snap to complete the puzzle. It's the same piece every time. All the others work fine. Do you happen to know what may be causing this?
@saintadel890211 ай бұрын
Hey ess! Can you pleasee tell me how would I use the script in a completely different resolution (540x960)? What are the scripts I should change? Thanks a ton!!
@waklioneto44992 ай бұрын
did you get it ?
@darshanlimbu29048 ай бұрын
how did you find the coordinates of in the first place?
@saintadel8902 Жыл бұрын
thxx!!
@axelnaut46707 ай бұрын
hi ! came across ur tutorial a couple weeks ago and i wanted to try it out on 2 different pieces. 1 works fine but the other puzzle keeps getting the error "indexerror: list index is out of range" even though i put it all the varibales correctly and made sure all my pieces have the same amount ;(( im not sure what else could be the problem, is there any way to fix this? thanks!!
@essRenPyTutorials7 ай бұрын
Make sure you have the same amount of coordinates in the "piece_coordinates" list as the number in the "page_pieces" variable. Sounds like there's a mismatch which causes the error. So if you have 12 pieces, then the list should have 12 tuples inside the list. The tuples are the round brackets ex: (120, 520). So one of those is one coordinate. In this example there should be 12 of them.
@axelnaut46707 ай бұрын
hi! thank u so much for answering, and even if i double checked that the coordinates matched the amount of "page_pieces" i still get the same error :< Edit: the error is on the "initial_piece_coordinates[i]" in the script. Im aware that its supposed to be left blank in the default variable so im not sure why this is happening @@essRenPyTutorials
@Koke_Nana Жыл бұрын
I did everything as you explained but the pieces just kept “snapping” to the correct spot without being dragged (only by clicking), i hope you get what i mean 😅😅, plus; the complete label didn’t work as well (there’s no errors in the script). 😢 Keep up the great work ❤
@essRenPyTutorials Жыл бұрын
If there's no errors it's likely you have just forgotten a piece of code somewhere or for example miss-wrote some of it (like referencing the wrong variable). The code we have in the tutorial shouldn't trigger on click either but only after being dragged.
@anno-chan888Ай бұрын
mine are doing the same! what's the solution?
@Dawnrus4 ай бұрын
Yea no this doesn't work. It's telling me theres an IndexError: List Index out of range. On the pos initial_piece_coordinates[i] line.
@essRenPyTutorials4 ай бұрын
Sound like your "page_pieces" variable might be set to a different value than the number of coordinates stored in the "piece_coordinates" variable. You might have missed adding one or two coordinate tuples to the list. There should be 12 for this tutorial. If they don't match, it would throw an index error with the loop in the mini-game screen.