How to create a simple drag-and-drop game? [ANSWERED]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
pyopyon
Veteran
Posts: 450
Joined: Thu Aug 29, 2013 4:35 am
Completed: https://chouette.itch.io/
Projects: Ocean Pearls, Catching the Fox [NaNo16], Singles
Organization: Jellyfish Parade
Tumblr: jelpiparade
Skype: miss.chouette
Soundcloud: pyopyon
itch: chouette
Contact:

How to create a simple drag-and-drop game? [ANSWERED]

#1 Post by pyopyon » Fri Dec 13, 2013 6:13 am

Hello! So I'm creating a dating sim, and there's a portion of the game where in the plot, the main character (aka, the player) gets two bottles of water from the cafeteria. I wanted to make a simple drag and drop game where all you do is drag two bottles of water to the correct box.

However... I have no idea how to go about doing this, and I admit that my understanding of code is a little basic, so I get easily overwhelmed by tutorials that aren't super basic in language. Is there a way to do this?
Last edited by pyopyon on Sun Feb 07, 2016 4:42 am, edited 1 time in total.

User avatar
netravelr
Miko-Class Veteran
Posts: 504
Joined: Thu Jan 28, 2010 2:31 am
Completed: Culina: Hands in the Kitchen, Culina: The Spirit of Cooking, Saving Zoey
Projects: Love at the Laundromat
Organization: Lakeview Interactive
Deviantart: netravelr
Location: USA
Contact:

Re: How to create a simple drag-and-drop game?

#2 Post by netravelr » Fri Dec 13, 2013 6:19 am

I think this will help you greatly:

http://www.renpy.org/doc/html/drag_drop.html

Look at the bottom of the page for an example!
Image
Technical Designer/Programmer
Game Design Portfolio - Project updates on my Twitter
Experienced in: C/C++/C#, Python, Unreal, Unity, and Flash
_________________
"Space can be very lonely. The greatest adventure is having someone share it with you."

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: How to create a simple drag-and-drop game?

#3 Post by Donmai » Fri Dec 13, 2013 6:49 am

There's also this page on the Cookbook that you may find interesting:
http://lemmasoft.renai.us/forums/viewto ... 51&t=16151
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Post Reply

Who is online

Users browsing this forum: OddTillTheEnd, _ticlock_