home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18330 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.2 KB  |  26 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!pageworks.com!world!eff!news.oc.com!mercury.unt.edu!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!yale.edu!yale!gumby!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!access.usask.ca!mizar.cc.umanitoba.ca!umyue
  3. From: umyue@ccu.umanitoba.ca (Kelvin Karkin Yue)
  4. Subject: How to write a moving object?
  5. Message-ID: <BxM4rL.LA7@ccu.umanitoba.ca>
  6. Sender: news@ccu.umanitoba.ca
  7. Nntp-Posting-Host: ccu.umanitoba.ca
  8. Organization: University of Manitoba, Winnipeg, Canada
  9. Date: Thu, 12 Nov 1992 17:04:32 GMT
  10. Lines: 14
  11.  
  12.  
  13.     Hello , is any body know how to write an object moving on the screen? For
  14.  example, if I got a pict resource, and I want to make it moves from the left
  15. side of the screen to the right, how can I write the codes in THINK Pascal? But
  16. I don't want to use the FOR loop like the following:
  17.         for i := 0 to 300 do
  18.                 begin
  19.                   {erase the picture}
  20.                   {draw the picture at the new position i}
  21.                 end;
  22.         Is there any built-in function can make the movement more "smoothly"?
  23.         Please email, and thanks a lot.
  24. Kelvin YUE
  25. umyue@ccu.umanitoba.ca 
  26.