removing sprites from stage

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

  1. #1

    Default removing sprites from stage

    Hi

    I want to be able to, once a sprite has moved across the stage, to then be
    removed, i.e. delete from the score, so it doesn't either keep moving/stop/turn
    invisible etc (or whatever action I have been using until now).

    Is this possible? I am using lingo to control everything from one frame rather
    than using the timeline.

    Hope you can help


    Spud_Nic Guest

  2. Similar Questions and Discussions

    1. lingo to put sprites on stage
      what is the lingo syntax to put a sprite on stage other than using OOP methods??
    2. dynamically create sprites on stage
      How can I dynamically create sprites on the stage from external files? I have this gallery of images in different sections, and the owner of the...
    3. Can I stretch the stage size along with the sprites
      I am projecting my program at a trade show. The problem is that the angle where I have to place my projector causes the image to be skewed. I...
    4. play video underneath sprites on stage?
      I'm putting together a representation of an interactive television application but i'm having some trouble. i'm trying to loop a video file on the...
    5. MX: Resize stage without scaling sprites?
      In article <bdpun7$lt1$1@forums.macromedia.com>, El Monty <nospam@nojunk.com> wrote: (the stage).rect just makes the window and backdrop...
  3. #2

    Default Re: removing sprites from stage

    Setting the visible of the sprite to false pretty much takes it out of
    the picture.
    JB Guest

  4. #3

    Default Re: removing sprites from stage

    You can 'delete' a sprite simply by setting its member to void. You should also
    tidy up the sprite channel, however, so that it will behave predictably when
    you create a new sprite. I use a general 'delte sprite' handler in a movie
    script and call it whenever I want to delete a dynamically created sprite. The
    attached code was found (out there on the net somewhere, can't remember where)
    and modified a bit. I can't take credit for it, but it is pretty simple stuff.

    -- Reset all properties of puppeted sprite(n)
    on ResetSprite n
    if sprite(n).puppet=true then
    puppetsprite n,false
    spr=sprite(n)
    spr.member=void
    spr.visible=true
    spr.blend=100
    spr.rotation=0
    spr.skew=0
    spr.fliv=false
    spr.fliph=flase
    spr.color=rgb(0,0,0)
    spr.bgcolor=rgb(255,255,255)
    spr.scriptinstancelist=[]
    end if
    end

    Questy 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