Item list with scroll and draggable items
sudosushi
PRO Posts: 4
Ciao! I am currently working on my first game and wondered if there was anyone who had any idea how to create a list of items scrolling on the Y axis but to be able to drag items out of the list and into a drop area.
I've managed to get a scrollable list up to the point of being scrollable and being able to drag items out of the list but as soon as I deviate from the X axis while dragging (i.e. dragging down and right to drop in a bag) it ends up scrolling the entire list.
I've tried limiting the scroll to within a section of the list but it continues to think the draggable object is part of the list even outside of the draggable area.
Example:
http://sudosushi.com/i/gamesalad/draggablelist.png
I'm dragging an item from the right into the left.
If you have any questions about my project, do feel free to ask.
- Lorenzo
I've managed to get a scrollable list up to the point of being scrollable and being able to drag items out of the list but as soon as I deviate from the X axis while dragging (i.e. dragging down and right to drop in a bag) it ends up scrolling the entire list.
I've tried limiting the scroll to within a section of the list but it continues to think the draggable object is part of the list even outside of the draggable area.
Example:
http://sudosushi.com/i/gamesalad/draggablelist.png
I'm dragging an item from the right into the left.
If you have any questions about my project, do feel free to ask.
- Lorenzo
Best Answer
-
RThurman Posts: 2,881@sudosushi -- Here is an example of something that might work:
http://www.mediafire.com/download.php?6wdz6zgvj7l8dgr
Answers
Edit: I've worked out the actors draggable images but am stumped on the '1' \n '2' \n etc. I understand the logic/regex. '1' break '2' break etc but I'm just wondering if I could have images there instead.