Overlapping MOVE commands (iOS)

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
stjones
Posts: 13
Joined: Fri Dec 12, 2014 3:52 am

Overlapping MOVE commands (iOS)

Post by stjones » Sun Dec 21, 2014 11:40 pm

I have 8 graphic objects on a screen. When a button is pressed, these objects, using the MOVE command, move from point A to point B, change direction and move from point B to point C. Currently the moves happen sequentially, one starting when the other finishes. I would like to have them overlap, if possible. For example, OBJECT ONE is set to travel from A to B in 5 seconds, and from B to C in 5 seconds. Every object moves at this move rate. I would like for OBJECT ONE to starts it's move, then 1 second into the move, have OBJECT TWO start its move, and then 1 second into OBJECT TWO's move, have OBJECT THREE start its move, etc.

I have looked at the lockMoves command and the move command with the "without waiting" modifier - but can't find a method that works for what I want.

Suggestions?

Thanks!

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Overlapping MOVE commands (iOS)

Post by Simon » Mon Dec 29, 2014 6:18 pm

Hi stjones,
I think you are going to have to use the gameloop method for this and set the loc of the objects.
There are a bunch of good postings here:
http://forums.livecode.com/viewtopic.ph ... 2&p=115079

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply