PDA

View Full Version : Help with Swap Practice


Kendrel
12-06-2009, 06:49 PM
So I have 4 objects, how do i make them change places?

I'm looking for a method that allows me to make them swap places with a click, or a keystroke, not randomly, but in the order that i choose them to.:confused:

Kendrel
12-06-2009, 08:00 PM
I'm thinking that maybe a list could work, but i'm not sure on the code that I should use. Basically, i want to know how do i swap, for example the object on position 1 to the position 4, and that the object in position 4 moves to the position 1. And so on...

dubastot
12-06-2009, 09:46 PM
Drop a dummy at each of your objects. Just have a method where when mouse is clicked on this object move to that object's dummy.