Dragging Items doesnt work? (solved)

  • #1, z elecMonday, 16. January 2017, 23:36 hodinky 8 years ago
    Hello all,

    so i started my work with items and realized i cant drag them in the game, i actually dont have any idea why, as i activated it, here are my mouse properties, maybe someone can help?

    Fanoušek fóra

    109 Posts


  • #2, z sebastianMonday, 16. January 2017, 23:46 hodinky 8 years ago
    activate also item dragging in the main game options tab (cog icon"on the left side) 
     =)  

    ger:
    das muss in den Spieleinstellungen auch noch aktiviert sein. In dem button legat du nur fest welcher Befehl dann das dragging ausführen darf. 

    Grüße 
    Sebastian 

    Kapitán

    2346 Posts

  • #3, z elecMonday, 16. January 2017, 23:49 hodinky 8 years ago
    Oh my god i feel so dumb, thank you sebastian, also because you've helped me a lot in the last time grin

    Fanoušek fóra

    109 Posts

  • #4, z afrlmeTuesday, 17. January 2017, 00:05 hodinky 8 years ago
    Quick note: I'm not sure why it was called dragging to begin with as it confused the hell out of me the first time I tried that option & found out that you don't actually left click an item, hold & drag it to wherever you want to drop it. Instead it set the item as the cursor on left button release, which kind of defeated the purpose of dragging to me.

    It's actually possible to create an actual hold & drag system, but it involves a bit of work to get it working as intended. If you do then my recommendation would be to create commands for each of your items & unique cursors for each item, then you would use the mouse holding & released actions under the mouse properties tab to set the current item based on which item is currently underneath the cursor, providing an item is underneath the cursor. You would use the released to check if a scene object or character exists underneath the cursor & if so then you would use that command on the object/character else you would reset back to default command. I'm not going to go into the specifics on how to create something like this right now as I'm pretty sure there's probably already a thread or two on this forum where people have already asked for something like that.

    Imperátor

    7285 Posts

  • #5, z elecTuesday, 17. January 2017, 17:39 hodinky 8 years ago
    Actually i would be quite fine with the normal option, so i activated it in the main game options, but still nothing happens when i click at the item ingame?

    Fanoušek fóra

    109 Posts

  • #6, z afrlmeTuesday, 17. January 2017, 19:16 hodinky 8 years ago
    Actually i would be quite fine with the normal option, so i activated it in the main game options, but still nothing happens when i click at the item ingame?
    Question: have you assigned the mouse interface to the interfaces tab of your playable character? The dragged items option should also be ticked on the game properties (cog icon) section.

    If you've set it up correctly then left clicking on an item in the inventory should replace the mouse cursor with the item image.

    Imperátor

    7285 Posts

  • #7, z elecTuesday, 17. January 2017, 19:44 hodinky 8 years ago

    Turned out it actually works now, i always load a savegame ingame to save some time, now i played it from the beginning now it works, sorry!

    Fanoušek fóra

    109 Posts

  • #8, z afrlmeTuesday, 17. January 2017, 19:54 hodinky 8 years ago
    Ok then, quick tip. Don't use save games while working on development of your game. They tend to have conflict issues after you edit, replace or add new content because the save files only contain what existed at the time you created them & the engine has issues trying to read & update data that didn't exist or no longer exists.

    Imperátor

    7285 Posts

  • #9, z elecTuesday, 17. January 2017, 19:56 hodinky 8 years ago
    Any Tip on how to fasten up the testing? 

    Fanoušek fóra

    109 Posts

  • #10, z afrlmeTuesday, 17. January 2017, 22:21 hodinky 8 years ago
    Any Tip on how to fasten up the testing? 
    Two methods.

    1. create a custom debug interface. A few people on here have created them for your games so either search the forum for a thread about it or post a new thread asking how to create one.

    2. alternatively you can use the dev console (tab key on keyboard) while running your game through the VS editor. It will allow you to type in various commands to change scenes, condition values, values of values, add / remove items from inventory & so on. type help when dev console is open & then press enter to find out more about the various available commands.

    Imperátor

    7285 Posts