Page 1 of 1

moving object simultaneously

Posted: Sun Mar 09, 2014 5:04 am
by Jellobus
Hi guise,

I am trying to move several objects simultaneously. I was using repeat structure...but I found it was a wrong approach. :roll:

1. there are 10 images
2. move images 1 ~ 10 from Loc (A) to Loc (B) in random(10) thicks simultaneously.
3. each object has different speed when it moves

but it seems impossible until each image completes its action with repeat structure. Is it possible to move all object at the same time?

Cheers,


Louis

Re: moving object simultaneously

Posted: Sun Mar 09, 2014 5:49 am
by dunbarx
Hi.

Try this. Make three buttons. Put them along the top of the card. In a fourth button somewhere, put this into its script:

Code: Select all

on mouseUp
set the lockmoves to "true"
   move btn 1 relative 0,50 without waiting
   move btn 2 relative 0,50  without waiting
   move btn 3 relative 0,50  without waiting
set the lockmoves to "false"
end mouseUp
Press button, Voila.

Craig Newman

Re: moving object simultaneously

Posted: Sun Mar 09, 2014 5:50 am
by Simon
Hi Louis,
Check out lockMoves in the dictionary.
Think that is what you want.

Simon

Re: moving object simultaneously

Posted: Sun Mar 09, 2014 6:42 am
by Jellobus
Hi Simon and Dunbarx,

Thanks a lot for your help. :D
It looks like nothing is Impossible with LC!

Cheers,

Louis