How do I drag and drop with touch?

0 favourites
  • 4 posts
From the Asset Store
Surena Touch
$2.50 USD
A wrap from official Touch plugin to export touch/mouse input to other plugins.
  • Using touch Im trying to make it drag and drop - but

    i want the item thats being dragged to spawn another 1 of its kind in that place

    It does spawn another but instead of spawning the same frame it spawns frame 0

    how can i get the same frame of the dragged item to spawn

    My code wont work for some reason, can anyone help?

    gyazo.com/e507a3d127bfc3011f1e64fbbb850266

    gyazo.com/e507a3d127bfc3011f1e64fbbb850266

  • Your condition and event are both working with the same named item so the system goes to the last one called. Meaning

    Condition: I click this Accessory - (Roger I am tracking this accessory)

    Event: Create A new Accessory - (Roger I am tracking this accessory now)

    To fix this add a local variable - set that variable to accessory.animationframe before you create a new accessory. Then create the accessory and set the frame to your variable.

    It will look like this:

  • Your condition and event are both working with the same named item so the system goes to the last one called. Meaning

    Condition: I click this Accessory - (Roger I am tracking this accessory)

    Event: Create A new Accessory - (Roger I am tracking this accessory now)

    To fix this add a local variable - set that variable to accessory.animationframe before you create a new accessory. Then create the accessory and set the frame to your variable.

    It will look like this:

    Its perfect Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No problem friend...

    Those errors are always annoying when you bump into them the first time!

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