swapping objects

insidethecircle
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
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
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
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
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.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums