Reset sprite to origin after drop?

0 favourites
  • 2 posts
From the Asset Store
Use inertion of your movements to throw, rotate your objects and etc. Objects can interact with others while dragging.g
  • I am attempting to have an object reset to it's origin after it is dropped. My plan is to have a grid of sprites, each one Drag and Drop enabled. When any of the objects are dragged onto a "Hot Zone" and pop-up animation happens. There will be two different Hot Zones" on the screen each with a different animation and would like the sprite reset so users can go back and try the other option. I have successfully created a scene with one of these zones and added an action that returned the sprite to its origin with the "Set Position" action. The sprite does indeed return to its origina with this setup hoever it can no longer be dragged and dropped to any other place on the screen afterwards. Any suggestions would be much appreciated. Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It does sound like it's setting the position unconditionally, meaning it will Set Position every tick.

    Create an instance variable "reset" and when this is true, Set Position. Then set it to false afterwards.

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