home *** CD-ROM | disk | FTP | other *** search
/ Eidos Interactive CD-ROM 1997 / EIDOS.ISO / data / intro.dxr / 00003_Pause.ls < prev    next >
Encoding:
Text File  |  1997-10-27  |  662 b   |  24 lines

  1. property myStartTicks, myDelay
  2.  
  3. on beginSprite me
  4.   set myStartTicks to the ticks
  5.   set myDelay to myDelay * 60
  6. end
  7.  
  8. on exitFrame me
  9.   if (myStartTicks + myDelay) > the ticks then
  10.     go(the frame)
  11.   end if
  12. end
  13.  
  14. on getPropertyDescriptionList me
  15.   set c to "How many seconds to delay?"
  16.   return [#myDelay: [#comment: c, #format: #float, #default: 3.0]]
  17. end
  18.  
  19. on getBehaviorDescription me
  20.   set line1 to "This simple behavior will pause on a single frame for a given number of seconds. "
  21.   set line2 to "Unlike some other approaches you'll retain full interactivity during this pause, so sprites can be dragged about, keys pressed, etc."
  22.   return line1 & line2
  23. end
  24.