Just added lock screen and unlock screen
on mouseUp
put fld "VERTS" into fld "VERTS2"
put fld "VERTS" into fld "VERTS3"
put 2 into STRETCH
repeat until STRETCH > 300
lock screen
put (360 + STRETCH),310 into line 3 of fld "VERTS2"
put (360 - STRETCH),10 into line 4 of fld "VERTS2"
----
put (360 - STRETCH),310 into line 3 of fld "VERTS3"
put (360 + STRETCH),10 into line 2 of fld "VERTS3"
put (360 + STRETCH),10 into line 4 of fld "VERTS3"
set the relativePoints of graphic "GG" to fld "VERTS2"
set the relativePoints of graphic "GG2" to fld "VERTS3"
set the left of graphic "GG" to 50
set the top of graphic "GG" to 10
set the left of graphic "GG2" to 50
set the top of graphic "GG2" to 10
add 2 to STRETCH
unlock screen
--wait 2 ticks
end repeat
end mouseUp
All the best
Terry
> On 21 Mar 2016, at 19:18, RM <[email protected]> wrote:
>
> I have been messing around with what are, frankly, extremely simplistic,
> experiments in animating
> polygon graphics.
>
> However, as I change the vertices of a graphic the thing won't stay still but
> keeps moving its centre,
> so I have to keep reseting its left side. As a result while the animation is
> running the whole thing looks
> like a horrible, jerky film from about 1880, which, while charming in its own
> way is not what I am
> aiming at: a smooth, flowing animation.
>
> I would be most grateful for any ideas on how to achieve that smoothness of
> motion.
>
> Images and stack here: http://forums.livecode.com/viewtopic.php?f=10&t=26858
>
> Richmond.
>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode