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

  1. #1

    Default movable sprites

    I have recently updated several movies from an older version of Director to Director MX. Now the movable
    sprites jump around to odd locations on the screen when the playback head enters the frame where they
    become movable.

    Is anyone else having this problem, and is there a fix other than manually removing and replacing those
    sprites one by one?

    Thanks.

    Dewey


    MECS webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Movable iFrame with imbedded HTML
      Hi, thank you for your assistance! My pop-up uses an iFrame to place an html page within. However, dragging the iFrame leaves the html content...
    2. Connection to Movable Type Blog MT4
      Hi there, can some one tell how I can make a connection to a MT4 Blog. I did it with the wizzard, but it failed.. Error " Name and Passwort for...
    3. controlling and movable sprites
      please help, I am proficient in Maya and Director and understand the general concepts of Director's 3d Action and Triggers. However, I would...
    4. movable interface?
      hi, just wondering if someone could help me...please! I have to make an interface for a CD-Rom with Director 8.5 The stage is going to be smaller...
    5. movable objects in a movie
      how do i make objects draggable in a movie? i dont have a lingo book so cant look through it. can u give me the behavior or where to find it? this...
  3. #2

    Default movable sprites

    Hi,

    I have multiple sprites in my score on the same channel with all of their properties set to moveable. Once I set the sprites to moveable I lose the ability to isolate individual sprites and move them without affecting adjecent sprites on the same channel. So when I move my sprite in frame 1 channel 18 and then go to frame 2 channel 18 that sprite has moved in conjunction with frame 1. One solution that I have is to move the sprite on frame 2 to channel 19 but my problem is that I have approx. 80 sprites. Is their a way to isolate the sprites movement by it member name instead of by the sprite number.

    Ex)on spriteMove
    sprite(18).moveableSprite = TRUE
    end

    thanks



    blkli0n webforumsuser@macromedia.com Guest

  4. #3

    Default Re: movable sprites

    If you are using director 8.5 and up you can select the all your
    sprites and apply the moveable behavior from the the behavior
    inspector.

    "blkli0n" [email]webforumsuser@macromedia.com[/email] wrote in message news:<boh7eo$slo$1@forums.macromedia.com>...
    > Hi,
    >
    > I have multiple sprites in my score on the same channel with all of
    their properties set to moveable. Once I set the sprites to moveable
    I lose the ability to isolate individual sprites and move them without
    affecting adjecent sprites on the same channel. So when I move my
    sprite in frame 1 channel 18 and then go to frame 2 channel 18 that
    sprite has moved in conjunction with frame 1. One solution that I
    have is to move the sprite on frame 2 to channel 19 but my problem is
    that I have approx. 80 sprites. Is their a way to isolate the
    sprites movement by it member name instead of by the sprite number.
    >
    > Ex)on spriteMove
    > sprite(18).moveableSprite = TRUE
    > end
    >
    > thanks
    Jay Guest

  5. #4

    Default Re: movable sprites

    Director animation is based on keyframes. When you place an instance of
    a member on the stage or the score, it will usually span a number of
    frames. The default is number of frames is 28. The first frame will
    show a circle and the last frame will show a rectangle. That circle in
    the first frame represents a keyframe.

    If you move the sprite in any one frame without selecting the
    registration point for that sprite, then you will move the location of
    that sprite in every frame. If you move the sprite by dragging the
    registration point then you will, 1. create a new keyframe at the end
    of the sprite's span in the score, and, 2. change the location of the
    sprite in only that frame and, 3. set up an animation path from the
    first frame to the last frame. You will also now see a circle at the
    last frame of the sprite's span.

    If you want to add a keyframe at any point in the sprite's span, select
    that frame and, 1. use the Insert menu item Keyframe, or, 2. use the
    keyboard shortcut for that action. Adding a keyframe to a sprite's span
    will cause the sprite to animate from one keyframed locatioon to the
    next.

    If you want to have each sprite in each frame operate independently and
    not be tween animated, then select each frame in the sprite's span, one
    at a time, and then select Split Sprite from the Modify menu.

    There are several useful sections of the online manual and also some
    useful tutorials included with Director. These may help to show you how
    Director works.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

  6. #5

    Default Re: movable sprites

    Hi,

    I wish my problem was that simple unfortunately, it?s a little more complex then moving assets around in authoring mode. I need the user to be able to dynamically move sprites during runtime mode. I have 4 sprites per channel in different frames but they all reside on the same channel. I need to be able to move these sprites around with lingo so that they can be positioned and once positioned obtain their v & h loc and save that data to a text file.

    My problem, is when I set one sprite in channel 18 to moveable or do it through lingo via the drag behavior or just in code and move that sprite during runtime and proceed to another frame where the second sprite resides it has moved as well. I need to be able to move the sprites independently of each other while maintaining all the sprites on the same channel. Again I must have all the sprites on the same channel.

    If you choose to respond please read my entire post so my dilemma may be understood fully.

    I appreciate the help.
    Ben




    blkli0n webforumsuser@macromedia.com Guest

  7. #6

    Default Re: movable sprites

    Hi Ben,

    Your original thought of storing the new location in a global variable
    would work just fine if you were not using the same sprite channel for
    a different sprite.

    The very simplest solution is to use different sprite channesl for each
    of these movable sprites.

    If you really, really, do need to use the same sprite channel, and with
    1,000 channels available I can't think of a good reason, then you could
    also store the name of the member that occupies the sprite channel in
    any one location.

    You should actually be using a global variable, or in the case of
    storing the member name and sprite channel number, a global property
    list, as it's about 1000 times faster to use than a text member and
    about 100 times faster than a field member.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon 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