Drag/Drop Questions (and a question about screens)

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
Glazed Donuts
Regular
Posts: 121
Joined: Thu Aug 12, 2010 11:47 am
Contact:

Drag/Drop Questions (and a question about screens)

#1 Post by Glazed Donuts » Thu Feb 17, 2011 8:29 pm

How can I make it so that you will need to drag/drop X-number of graphics scattered on the screen into certain areas on the screen? I was trying to work off the example in the documentation, however, as soon as you drag/drop one graphic, then the screen exits.

When using the Screen methods, is it possible to put text/dialogue on there? or are 'Screens' strictly for displaying graphics only? I know 'Scenes' allow you to use dialogue, but what is the difference between using 'Scenes' and 'Screens?'

Glazed Donuts
Regular
Posts: 121
Joined: Thu Aug 12, 2010 11:47 am
Contact:

Re: Drag/Drop Questions (and a question about screens)

#2 Post by Glazed Donuts » Fri Feb 18, 2011 2:50 pm

I had another drag/drop question. How do you use the Remove(child) function? I couldn't find any examples in the documentation. Basically, I'd like for the image to disappear when you drag/drop the image over another specific image. Would the below code be valid? If not, what would be the correct way to do this?
draggroup:

drag:
drag_name "dragTest"
child "sozai/ui/save2.png"
droppable False
dragged remove(this)
xpos 100 ypos 100

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Hojoo