Drag&drop icon

0 favourites
  • 2 posts
From the Asset Store
A set of Hispanic food icons and images for your in-game store!
  • Hi guys! Here is the question:

    • i need to create icon of item? and user can pick this item and palce on a game field, but icon of this object need to stay in item menu.

    Example: Plants vs Zombie - when you drag a seed to plant, icon of that seed stay on place, but under cursor you get a copy of this item.

    So.. i tried many times.. but failed... Who can solved me that problem?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Well ... You can place two different objects ( NonDragNDrop *Insert your item name here* and DragNDrop *Insert your item name here* ) of one item in the same position ... Then Attribute the Drag-N-Drop behavior to the top one ( DragNDrop *Insert your item name here* )

    And add this little event :

    If (NonDragNDrop *Insert your item name here*) is not overlapping (DragNDrop *Insert your item name here*) : (NonDragNDrop *Insert your item name here*) | Spawn (DragNDrop *Insert your item name here*)

    And you are done !

    Cheers !

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)