No video

Using Drag & Drop To Reassemble Pieces Of A Page - Ren'Py Mini-game Tutorial

  Рет қаралды 9,275

__ess__ Ren'Py Tutorials

__ess__ Ren'Py Tutorials

Күн бұрын

Пікірлер: 28
@anatoliyadonin8013
@anatoliyadonin8013 Жыл бұрын
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 :)
@LVKoG
@LVKoG 3 ай бұрын
Needed this part as well…thanks my friend
@codemonkey5519
@codemonkey5519 Жыл бұрын
Thank you! I've been wanting more tutorials involving drag and drop systems
@Jimsonization
@Jimsonization 5 ай бұрын
This is fantastic! Thank you, thank you, thank you!
@steamycarafe
@steamycarafe 11 ай бұрын
Thank you so much for this **excellent** tutorial!!
@mlfrogit5058
@mlfrogit5058 Жыл бұрын
wow these tutorials are great keep it up
@essRenPyTutorials
@essRenPyTutorials Жыл бұрын
Glad to hear it! Thanks for your comment. 😁
@anatoliyadonin8013
@anatoliyadonin8013 Жыл бұрын
Thanks for the tutorial, it works great
@Oilhapi
@Oilhapi 14 күн бұрын
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.
@emanuele4678
@emanuele4678 8 ай бұрын
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
@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
@essRenPyTutorials Жыл бұрын
I haven't tested the code on Android, but I don't believe there should be any issues.
@anatoliyadonin8013
@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
@anatoliyadonin8013 Жыл бұрын
@@essRenPyTutorials Resetting the variable works $ finished_pieces = 0 :) I just tested the wrong save
@MXaliant
@MXaliant 9 ай бұрын
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?
@SolarisDreams
@SolarisDreams 5 ай бұрын
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?
@saintadel8902
@saintadel8902 11 ай бұрын
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!!
@waklioneto4499
@waklioneto4499 2 ай бұрын
did you get it ?
@darshanlimbu2904
@darshanlimbu2904 8 ай бұрын
how did you find the coordinates of in the first place?
@saintadel8902
@saintadel8902 Жыл бұрын
thxx!!
@axelnaut4670
@axelnaut4670 7 ай бұрын
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!!
@essRenPyTutorials
@essRenPyTutorials 7 ай бұрын
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.
@axelnaut4670
@axelnaut4670 7 ай бұрын
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
@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
@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
@anno-chan888 Ай бұрын
mine are doing the same! what's the solution?
@Dawnrus
@Dawnrus 4 ай бұрын
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.
@essRenPyTutorials
@essRenPyTutorials 4 ай бұрын
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.
💬Text Messaging in Ren'py!💬
6:27
Visual Novel Design
Рет қаралды 42 М.
Making a difficult game about fitting in - Acerola Jam 0
19:17
jess::codes
Рет қаралды 337 М.
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 34 МЛН
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 9 МЛН
Pool Bed Prank By My Grandpa 😂 #funny
00:47
SKITS
Рет қаралды 18 МЛН
Japanese web design: weird, but it works. Here's why
11:49
Phoebe Yu
Рет қаралды 473 М.
Inventory and Gift System in Renpy!
20:06
Harmelody
Рет қаралды 467
I Built an INFINITELY ONE-SIDED Violin??
15:39
Xyla Foxlin
Рет қаралды 151 М.
Everything Starts with a Note-taking System
21:23
Mischa van den Burg
Рет қаралды 237 М.
Ren'Py -- Visual Novel Game Engine
11:08
Gamefromscratch
Рет қаралды 60 М.
Game Theory: This Place Is NOT Happy... (Happy Meat Farm ARG)
15:32
The Game Theorists
Рет қаралды 4,8 МЛН
RenPy Tutorial for Persistence | Creating Routes in Visual Novels
5:57
Ren'py Images and Action Editor Tutorial
12:33
Visual Novel Design
Рет қаралды 69 М.
RenPy Tutorial using Flags | Deciding the ending in a Ren'Py Game
4:08
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 34 МЛН