Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am new to game development just now begin to make some games with Construct-2. And I tried to make drag and drop function like Plant vs Zombies, Empire vs orcs....

Here is my sample file.

If I set a behavior to Drag and drop the original sprite is moved.

Is there a way to make it fixed in the area and move a copy from it?

share|improve this question
3  
Sample files stored on Dropbox won't last long. How about you just post the portion of code that's relevant? In addition to people not wanting to download some random file from the internet, it will help this question be useful to future users. – Byte56 Dec 27 '12 at 15:28

2 Answers

Yes you can spawn another object equal to the original and in the original position so when you move the original another takes its place.

share|improve this answer

I can't open the file right now because my internet speed is to slow to download the newest version of C2.

It sounds like you need to play with the "For Each" event.

For Each (sprite) checks for every sprite (or family) and looks for the ones where other conditions apply.

For example:

For Each (sprite) + Mouse is Overlapping the sprite

Do: set Drag Drop for the sprite(s) where conditions apply.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.