Ask a Question related to Macromedia Director Basics, Design and Development.
-
Spud_Nic #1
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
-
lingo to put sprites on stage
what is the lingo syntax to put a sprite on stage other than using OOP methods?? -
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... -
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... -
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... -
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... -
JB #2
Re: removing sprites from stage
Setting the visible of the sprite to false pretty much takes it out of
the picture.
JB Guest
-
Questy #3
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



Reply With Quote

