License from €75 Log in
DE EN FR ES IT CZ

Item dragged\Cursor question!

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 5 years ago
    Hi there,

    I was wondering if someone could help me with the following.

    I have a character in my game, that can be talked to. If you mouse over the character, the cursor will change to a little textcloud image.

    ''If cursor enters object area, change cursor to 'talk'"

    But you can also use an item on the character. My problem is that if you drag an item onto the character, the mouse cursor will change to the textcloud, and you can't use the item.

    Is there an option to say 'if item is dragged' or something similar?
    Then I could say that the cursor should only change to the textcloud if the 'item dragged' option is false.

    Does this make any sense? smile Anyway, thanks!




  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license.

    See licenses Try it for free
  3. · 5 years ago
    You can use the if lua result action part & insert this into it:

    return game.UsedItem:isEmpty()

    & it will return true if no item is currently being held by the current character.
  4. · 5 years ago
    You can use the if lua result action part & insert this into it:

    return game.UsedItem:isEmpty()

    & it will return true if no item is currently being held by the current character.
    Oh, thanks! Will try that!


  5. · 5 years ago
    Many thanks, works like a charm!

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?