swapping objects

insidethecircle
24 Sept 2009, 20:10
is there a simple way of swapping an object with one another? - im using the hide and reveal at the moment but i can foresee it causing alot of leg work and red eyes.

maybe a piece of code that allows you to copy the location properties of one object to another?

Freak
24 Sept 2009, 23:52
How about:

Have one temporary variable "workspace".

Create a function "Swap_Objects"
It will:
- Set "workspace" equal to parameter 1's parent.
- Move parameter 1 to parameter 2's parent.
- Move parameter 2 to #workspace#.

insidethecircle
25 Sept 2009, 12:38
thanks man
i had a brain storm last night a figured that i could do it by 'modifying' the object's properties
ill try out your coding idea too though- thaks for the heads up!

any idea about a get all function?

Freak
25 Sept 2009, 21:22
If you want to handle the command "GET ALL" as a special case, that's doable with a simple loop.
If you want true handling of multiple objects, you're better off learning a language other than Quest.

insidethecircle
30 Sept 2009, 11:15
thanks for the re about the get all function too.

im happy with quest. its pretty cool so i can live with it not being able to do get all 'extactly'

im a total newbie to coding- im a graphic artist (used to do 2000ad back in the day) so im no programmer!!
how would you do the loop thing in practice?
i really appreicate the help.