tracking mouse for screen saver

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default tracking mouse for screen saver

    I am creating a screen saver with director. I have is so that if the user clicks the mouse or presses a key, the movie will halt. These are all included in the movie script. The one thing I am having problems with is to have the movie quit when the mouse has moved. How can I do this without applying a script to a sprite?

    - Brian


    Brian@winmediainc.com webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Screen saver
      I want to put an image / object that was done in flash as a screen saver. How is this possible?
    2. Lg. Shaky Images in a screen saver
      Hello There!! I have completed a screensaver in director that is comprised of 10 images all with the approximate width:800 pixels height:900...
    3. Using an .swf as a screen saver
      After hours of searching for free software to do this, I decided to write it myself in Visual Basic. DISCLAIMER: I put about an hour into this...
    4. internet sharing and screen saver
      #1 screen saver on means I am not there to answer this question. When I return the internet is fine after I move the mouse/hit the spacebar. #2...
    5. Jerky Screen Saver
      Mike Dresser wrote: Thanks Mike for your reply. But, I'm such a greenie that I don't know how to tell if OpenGL is working or not. I do know that...
  3. #2

    Default Re: tracking mouse for screen saver

    here's a movieScript need to init the globals in startmovie, nextCheck
    delay and 4 value establish a min distance over times, so 1 pixel nudge
    doesn't quit

    global lastmouseLoc, nextCheck


    on idle
    if the ticks > nextCheck then
    if abs(the mouseH - lastmouseLoc.locH) > 4 \
    or abs(the mouseV - lastmouseLoc.locV) > 4 then quit
    lastmouseLoc = the mouseLoc
    nextCheck = the ticks + 30 -- 2 times a sec test
    end if
    JB Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139