Timing animation in a script?

Michiel Spape Michiel.Spape at nottingham.ac.uk
Thu Jun 4 15:05:31 UTC 2009


Hi,
What do you mean by 'show animation I created in..'? Are you trying to show an avi file, for example, or alternatively, move a picture across the screen in 600 ms (say, 1 pixel each 20 ms)? For the latter, I typically set start and end points, and check every time whether the 600 ms have passed. If one would, for example, have an imagedisplay, myDisplay, showing a picture at x,y = 300,400, then moving it, this would be possible:

Dim starttime as long
Starttime = clock.read
While (clock.read - starttime) < 600 do
	myDisplay.x = myDisplay.x + 1
	myDisplay.y = myDisplay.y + 1
	myDisplay.run
Wend

With the image being in the unreferenced objects ('deleted', which makes a mess of your experiment, but using goto loops isn't that transparent either).

For the former, I do not see why one would want to use a while...loop. Isn't the duration/offset enough to time it properly (though i have never used avi files, I wouldn't be surprised if this would be the case)

Best,
Michiel



Michiel Spapé
Research Fellow
Perception & Action group
University of Nottingham
School of Psychology

-----Original Message-----
From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of javagirl
Sent: 03 June 2009 16:23
To: E-Prime
Subject: Timing animation in a script?


Hi

I would like to show animation I created in a Do..While loop for about
600 ms.  Does anyone know the best way to do this?

Thanks

Cindy


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en
-~----------~----~----~----~------~----~------~--~---



More information about the Eprime mailing list