Hello, first time post here...
I am using the drag and drop functionality for a minigame in my VN. I am using a handful of draggroups each with a few individual drags. All of the draggroups are displayed at the same time, so there is an issue with the layering each of the drag objects. The objects in different draggroups will move under objects in draggroups that were defined afterwards. Basically, I am trying to have the drag object currently being dragged set as the top layer so it will drag over any other objects. Looking at the renpy doc, I can't see anything that explicitly describes this functionality. I see the "drag_raise" attribute, but this only applies to objects in a group.
With all of the interesting implementations of this functionality on the forums, I was hoping someone may have encountered this issue.
Thank you!
Layering of Draggroups/Drags
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.
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.
-
- Newbie
- Posts: 8
- Joined: Sun Oct 21, 2018 3:57 pm
- Contact:
- Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
- Contact:
Re: Layering of Draggroups/Drags
Did you try:
drag_raise True
as one of the attributes?
Alternatively, drag_name.top() will raise it.
Both fully detailed in docs: https://www.renpy.org/dev-doc/html/drag_drop.html
drag_raise True
as one of the attributes?
Alternatively, drag_name.top() will raise it.
Both fully detailed in docs: https://www.renpy.org/dev-doc/html/drag_drop.html
Frameworks & Scriptlets:
- Speech Bubble dialogue system
- Multiple Notify with ATL and history
- (WIP) Radial Masking - needs updating to use Shader
- 7.4 - Smooth Tinting using ATL and matrixcolor
- Several other repositories there too
-
- Newbie
- Posts: 8
- Joined: Sun Oct 21, 2018 3:57 pm
- Contact:
Re: Layering of Draggroups/Drags
I have tried both. Both of these methods will raise an object to the top of a drag group well. However, it does not allow me to raise an object in draggroup A above an object in draggroup B. Whatever draggroup was defined first becomes the bottom layer for me currently. Ideally, I can move the draggroup of the selected object to the top layer. From my understanding of the renpy doc, there isn't much talking about how different drag groups relate to each other--just the objects inside of a specifc draggroup.Remix wrote: ↑Sun Oct 21, 2018 7:55 pm Did you try:
drag_raise True
as one of the attributes?
Alternatively, drag_name.top() will raise it.
Both fully detailed in docs: https://www.renpy.org/dev-doc/html/drag_drop.html
Thank you for your quick reply!
Re: Layering of Draggroups/Drags
Well, because they don't... Why do you need separate drag groups?diamondbear wrote: ↑Sun Oct 21, 2018 9:32 pmFrom my understanding of the renpy doc, there isn't much talking about how different drag groups relate to each other
Who is online
Users browsing this forum: Google [Bot]