Page 1 of 1

grab following a line

Posted: Sun Apr 12, 2020 10:40 am
by kelyanok
how do i make so the player can grab an object but he cant move it everywhere, only at points that i choose? (not floating points, maybe a line or a curve)

Re: grab following a line

Posted: Sun Apr 12, 2020 10:56 am
by SparkOut
If I had time I would show a couple of techniques to do this sort of thing. It depends on whether you want to track a line or have a range of movement that then snaps to nearest point after dropping. I am sure other people will be interested in this as an experiment so you may have other suggestions, but for the purposes of an answer here and now, malte's Animation Engine will make this very simple to "constrain" https://livecode.com/extensions/animati ... e-5/6-0-0/
It's dual licenced for Commercial and Community versions