2 Replies Latest reply on Apr 26, 2007 9:24 AM by npo rule

    Target Cursor

    npo rule
      Hi
      I have created a target image in paint in director and want to use it as a cursor in my game.

      I have attached the following script to the background image of the game so the cursor will be shown on the whole stage but its not working can anyone suggest what i have done wrong?

      on mouseWithin me
      cursor ([member "target"])
      end

      Thanks
        • 1. Re: Target Cursor
          Level 7
          Hi,

          from the helpfiles:
          The cast member that you specify must be a 1-bit cast member. If the
          cast member is larger than 16 by 16 pixels, Director crops it to a
          16-by-16-pixel square, starting in the upper left corner of the image.
          The cursor’s hot spot is still the registration point of the cast member.

          Create a cursor member (Insert -> Media element -> Cursor) and work with
          that member to set as a cursor.

          Manno

          npo rule wrote:
          > Hi
          > I have created a target image in paint in director and want to use it as a
          > cursor in my game.
          >
          > I have attached the following script to the background image of the game so
          > the cursor will be shown on the whole stage but its not working can anyone
          > suggest what i have done wrong?
          >
          > on mouseWithin me
          > cursor ([member "target"])
          > end
          >
          > Thanks
          >

          --
          ----------
          Manno Bult
          http://www.aloft.nl
          manno@xs4all.nl
          • 2. Re: Target Cursor
            npo rule Level 1
            Thanks

            I got it working my target image wasnt 1-bit image!

            Thanks again!!