User Tag List

Page 4 of 4 FirstFirst ... 2 3 4
Results 31 to 34 of 34

Thread: Best way to make a weapon selection system tied to mouse wheel

  1. #31
    No Products Registered

    Join Date
    May 2015
    Location
    Switzerland
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total noob question here, so sorry about that but:

    I find the approach with the Textbox quite interesting! It would lend itself perfectly to a simple Inventory, where only one Object is displayed at a Time. Basically like this:

    User Picks up Key
    Textbox add Key
    User presses Keyboard Key to switch the active Inventory Item (from Key to Bottle and so on)
    Inventory goes to Animation Key of the Inventory Active Object
    If Animation = Key and Player is overlapping Door plus pressing Enter, delete Key from Textbox

    Unfortunately, i can't find a way to let the Textbox correspondent with an Active Object. Surely it's cause of my lacking abilities, but any ideas would be great from you veterans

    Thanks!!

  2. #32
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    If I understand correctly,
    you're going to have one single active object displaying (through its different animation) currently selected item in your "list-inventory", right?

    Unfortunately, this may be not so automatic,
    because animations of an object are dynamically addressable only through their "id number", and not by their "name",
    and since list object can't associate "dynamic" ids to the list items, but only incremental ids based on insertion order,
    you can't have a direct "text to id" correlation.

    So unless you name your list objects something like "11-Key", in order to retrieve the animation "key" at value -11- with some string manipulation (and this would be completely doable, but I don't know if you want to "show" your list object or not.. if it's hidden, that's completely doable and quick solution! ... Heck, if it's hidden you could just name that "11" )
    you'll have to find some other workarounds...

    One way could be with an additional list object,
    pre-setted with all your items, written on line numbers corresponding to animation "id".
    So that, when player changes "main list" inventory line, you will search that selected text in the second, hidden, "id-list", and then retrieve the corresponding line number and set the animation to that number.

    Easier solution could be with active picture: create a folder with all images of your inventory objects, then when player hits spacebar, just load "my_pictures_folder\" +"(list_current_line)"+".jpg" in the active picture.

    Many other solutions can be found...
    oh, just another: on spacebar you could destroy current inventory item/create object by name ---> "list current line"
    and actually create one single different active object for every item in your list and name it in the same way as the list lines.

  3. #33
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can make a simple inventory using the list object like this: http://community.clickteam.com/threads/82241-Simple-cave-story-like-inventory?highlight=inventory

  4. #34
    No Products Registered

    Join Date
    May 2015
    Location
    Switzerland
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Thanks! Thats pretty much what i thought of. I'm still too stooopid to understand it thoroughly but i guess i have to practice for another month and come back to it

    Thanks again!

Page 4 of 4 FirstFirst ... 2 3 4

Similar Threads

  1. [Suggestion] Mouse Wheel & Middle Mouse
    By izac in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 10th May 2009, 12:39 PM
  2. Mouse Wheel Grief
    By kungsangun in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 8th April 2008, 07:34 PM
  3. Mouse Wheel?
    By workshop2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th December 2007, 04:11 AM
  4. Help with Mouse Wheel in Build 244
    By Jaeu in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th April 2007, 08:19 PM
  5. Mouse Wheel - can we access it yet?
    By Dines in forum Extension Development
    Replies: 5
    Last Post: 2nd November 2006, 07:16 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
  •