home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- 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
- From: umyue@ccu.umanitoba.ca (Kelvin Karkin Yue)
- Subject: How to write a moving object?
- Message-ID: <BxM4rL.LA7@ccu.umanitoba.ca>
- Sender: news@ccu.umanitoba.ca
- Nntp-Posting-Host: ccu.umanitoba.ca
- Organization: University of Manitoba, Winnipeg, Canada
- Date: Thu, 12 Nov 1992 17:04:32 GMT
- Lines: 14
-
-
- Hello , is any body know how to write an object moving on the screen? For
- example, if I got a pict resource, and I want to make it moves from the left
- side of the screen to the right, how can I write the codes in THINK Pascal? But
- I don't want to use the FOR loop like the following:
- for i := 0 to 300 do
- begin
- {erase the picture}
- {draw the picture at the new position i}
- end;
- Is there any built-in function can make the movement more "smoothly"?
- Please email, and thanks a lot.
- Kelvin YUE
- umyue@ccu.umanitoba.ca
-