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!
Hi, I'm trying to create a move loop that moves objects in a loop until something happens and then the moving stops, I tried doing that like this
MOVING:
on StopMoveMe
lock screen
cancel _gmoveMePendingMethodID
end StopMoveMe
but the moving continues even after the StopMoveMe kicks in
So to conclude my question is how to stop the moving OR how to create a better Move loop that actually stops
thanks!
Well in the other post I suggested you use the animationEngine library created by derbrill . It is dual-licensed.
Look at the stack that I share with you, I think something like that is what you want to achieve
Not sure what you are really after with all these "move" issues. Attached is a stack that demonstrates a "random walk", that is, a loop with movement in a random direction for a random distance. I am not sure this is perfectly executed here, but it might give you some ideas. Everything is in a short script of button "start". A true random walk ought never wander too far from the starting point.
You can reset by pressing "start' again, and stop with the optionKey.
andresdt wrote: Mon Jan 03, 2022 9:23 pm
Well in the other post I suggested you use the animationEngine library created by derbrill . It is dual-licensed.
Look at the stack that I share with you, I think something like that is what you want to achieve
In the repository https://github.com/derbrill/animationEngine look at the PDF file animationEngine6_manual.pdf. When I go to make an animation I use that PDF and the animationEngine6 library
thank you very much to all!!, now there's just studying
to know, do i need to put all the script of this animation stack on my stack or can i put only the pieces that interest me?
thanks again