Wait until the move is done(?)
Posted: Wed Nov 20, 2013 5:47 pm
I've got a handler that does this:
move graphic "ball" to 300,300 in one second
--then we do other things
The problem is that the "other things" start before the move is complete. I tried adding "wait 1 second" after the first line of code but that seems to freeze everything so you don't see the object move properly and the other things (that do some more movement) don't work properly because the position of the object isn't where it should be. So I'm looking for the equivalent to "wait until the move is done", as in:
move graphic "ball" to 300,300 in one second
wait until the move is done
--then we do other things
Any suggestions welcomed!
Thanks,
Barry
move graphic "ball" to 300,300 in one second
--then we do other things
The problem is that the "other things" start before the move is complete. I tried adding "wait 1 second" after the first line of code but that seems to freeze everything so you don't see the object move properly and the other things (that do some more movement) don't work properly because the position of the object isn't where it should be. So I'm looking for the equivalent to "wait until the move is done", as in:
move graphic "ball" to 300,300 in one second
wait until the move is done
--then we do other things
Any suggestions welcomed!
Thanks,
Barry