SamSuka
__ess__
__ess__

patreon


Drag & Drop System Tutorial Series + Script Downloads

This is a new tutorial series where I'll show how to use Ren'Py's drag and drop system to make draggable and droppable items. I will go through the basics like how to make a drag displayable in a screen using Ren'Py script and how to use its properties. That will include both the ones that don't need Python functions and those that do.

I will also go through how to create drag objects using Python as this will be useful when working with one of the less talked about properties, namely "drag_joined" where you can join several drags to be dragged at the same time.

The example scripts for each video will be FREE and available to download in this post as each video comes out.

You can watch the tutorial playlist here: Ren'Py Drag & Drop System Tutorial

Hope you'll enjoy this series! Thanks for supporting the channel for more tutorials to come! 😊

Script Downloads

Part 1 script: Download

Part 2 script: Download

Part 3 script: Download

Part 4 script: Download 

Comments

Worked like a dream. Thank you!

Pär Åkermark

I would suggest solving this by using a global variable with the default statement and name it something appropriate, like "blue_drag_created" for example. You can set it to False as the default value, then when the blue drag has been created in the function, you set the variable to True. Then in the screen you can check if the variable is True, if it is, then show the imagebutton. Since you'll be changing the value of the variable inside the function, you'll also have to declare it as a global at the top of the function.

Sara

Thank you! Got that working. Next problem: At part three you change the drag_name to "blue". I wanna be able to click an imagebutton only after the drag changed name to "blue". If drag_name == blue: imagebutton should solve it, but it doesn't. Any ideas what I might be doing wrong? The imagebutton is on the same screen as the drags.

Pär Åkermark


More Creators