Here is the little big project I’ve been working on recently.
overworld1.blend (957 KB)
(Note: if no text shows up when you click on things, try playing in Standalone, or re-starting Blender grumble grumble)
It’s an isometric top-down adventure/RPG sort of deal. So far I have the basic movement system down (hold or click RMB to move) and some basic world item interaction (LMB on an object to get its description blurb).
What I want to do is emulate the drag-and-drop nature of item interaction seen in the older Ultima games; where one would grab nearby objects with their mouse and drag them into their inventory to pick them up, or drag them from the inventory back into the world to drop them. The process is not unlike moving icons around your desktop and dragging them into folders.
The brown square in the corner of the GUI represents the player’s backpack. Items (the cyan box in the middle of the house is an ‘item’) should be able to be dragged into there from the world, given the player is within grabbing range of the object. I don’t want to set up a grid or cell system to store the item objects in; I want the items to land just where they are on the backpack plane when the button is let go of and the dragging action is done. In the future, this method will also be used to equip/remove items from your body, using a paperdoll.
While the item is being dragged, it should follow (or even replace!) the mouse cursor. I have seen some tutorials and other threads about setting up an in-game mouse cursor, so I will probably start by digging into those.
Does anybody have any ideas how I could go about doing this? I don’t really know where I would start…