home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / oop / macapp3 / 572 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.6 KB  |  47 lines

  1. Newsgroups: comp.sys.mac.oop.macapp3
  2. Path: sparky!uunet!puc.cl!pdsaffer
  3. From: pdsaffer@ing.puc.cl (pdsaffer)
  4. Subject: How can I detect overlapping Views??
  5. Message-ID: <1993Jan22.172744.1476@tolten.puc.cl>
  6. Sender: news@tolten.puc.cl (News Manager)
  7. Nntp-Posting-Host: malloco.ing.puc.cl
  8. Organization: Pontificia Universidad Catolica de Chile
  9. X-Newsreader: TIN [version 1.1 PL8]
  10. Date: Fri, 22 Jan 1993 17:27:44 GMT
  11. Lines: 34
  12.  
  13. Hi,
  14.  
  15.     I'm working on an annimation application. In the main content view
  16. of my scenario window I want to have several cast members that move
  17. arround the screen. I need to detect collisions between these actors.
  18. I wonder if the best solution would be to draw each of them on an independent 
  19. subview of the main content part of my window? 
  20. If this is so, could someone tell me if:
  21.  
  22. [1] MacApp makes it possible to change from the program
  23.     the relative position of a view from its superView using?
  24.  
  25. [2] Can I detect from my program if two views are just about to start
  26.     overlapping (they share an edge or a corner)?
  27.  
  28.     My application is very similar to a video-game. When you shoot a
  29. space invader the program must somehow detect if the bullet has hit the
  30. martian. How would the authors of "Space Invaders" have implemented this 
  31. feature using MacApp?
  32.  
  33.                 Thanks in advance,
  34.  
  35.                     Paul.
  36.  
  37. P.S. Please kindly send your answers to: 
  38.  
  39.     pdsaffer@malloco.ing.puc.cl 
  40.  
  41. ------------------------------------------------
  42. Pontificia Universidad Catolica de Chile
  43. Escuela de Ingenieria
  44. Departamento de Ciencia de la Computacion
  45. Centro de Informatica Educativa
  46. ------------------------------------------------
  47.