Reset sprite to origin after drop?

Get help using Construct 2

Post » Wed Apr 24, 2013 12:34 am

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!
Posts: 5
Reputation: 185

Post » Wed Apr 24, 2013 2:14 am

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.
Posts: 877
Reputation: 5,650

Return to How do I....?

Who is online

Users browsing this forum: cotteux, gomotion100, mariogamer, mercuryus, NaSTy, ozzmotor, plinkie, RBuster, Yahoo [Bot] and 5 guests