User Tag List

Results 1 to 5 of 5

Thread: Drag and Drop Inventory Possible?

  1. #1
    No Products Registered

    Join Date
    Nov 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Drag and Drop Inventory Possible?

    I just stumbled upon the Newsground TGF2 Edition and was wondering if it is possible to create a drag and drop inventory with the limited objects of this version?

    The type of inventory I am looking to achieve is the one usually used in Escape the Room flash games. Basically find the item click on it and drag it to the inventory, then when you need the item just click on it (when in inventory) and drag it to a object/item to interact with.

    Thank You
    InsertCoin25




  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Drag and Drop Inventory Possible?

    Yes, the general idea is to set some sort of value on the object when it's clicked on, to tell it to follow the mouse, and then to clear that value when the mouse is released over the inventory.

    Examples in this thread might help:

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=190172

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Drag and Drop Inventory Possible?

    There's also one on nivram's site that should definitely be openable with the TGF2 Newgrounds version: http://www.castles-of-britain.com/mmf2examplespage3.htm (at the bottom of the page).

  4. #4
    No Products Registered

    Join Date
    Nov 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Drag and Drop Inventory Possible?

    Thanks for the examples guys :grin: I tried both examples and they run great on the Newgrounds Edition. Just have another question: After the item is clicked on and dragged how would I have the item return to the place it was picked up at if it isn't dropped in the inventory? Basically return to the location it was at if it doesn't interact with the inventory or another item.

    Thanks Again
    InsertCoin25

  5. #5
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Drag and Drop Inventory Possible?

    Save the X, Y position in Global Values. When it is dropped place it at the Global Value's X, Y position.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. Drag and drop movement- force drop action
    By qenio in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th April 2013, 09:53 PM
  2. Drag & drop without drag & drop object.
    By soloman in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 20th August 2011, 02:45 AM
  3. Drag and Drop
    By legocacher in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 18th December 2010, 11:30 PM
  4. Drag and drop
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 27th June 2008, 06:18 PM
  5. Drag and Drop Inventory
    By Nes in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 20th November 2006, 05:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •