Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Help with Swap Practice
Old
Kendrel
Guest
 
Status:
Posts: n/a
Default Help with Swap Practice - 12-06-2009, 05: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.
   
Reply With Quote
Old
Kendrel
Guest
 
Status:
Posts: n/a
Default 12-06-2009, 07: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...
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 12-06-2009, 08: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.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.