Ask a Question related to Macromedia Director Basics, Design and Development.
-
TomaHawKPT webforumsuser@macromedia.com #1
Attaching behaviour to sprite with Lingo?
Attaching behaviour to sprite with Lingo?!
Created On Sunday 29, June, 2003 2:11 PM
Attaching behaviour to sprite with Lingo?!
TomaHawKPT
Junior Member
Posts: 1
Joined: Jun 2003
Sunday, June 29, 2003 2:11 PM (New!)
Hi,
I have a script that I want to attach a behaviour to a sprite dinamicly with Lingo. How can I do that? The behaviour as several property elements
I've tried the next with no sucess
sprite(mapSprite).member = member("map_crop")
sprite(mapSprite).puppet = true
scriptTemp = new(script "zoomInOut", 25, 740, 540, 80, 80, 400, 300, 530, 530)
sprite(mapSprite).scriptList.append(scriptTemp)
I have no idea what so ever of what to do :(
Thank you
TomaHawKPT webforumsuser@macromedia.com Guest
-
Copy sprite behaviour
Hi All Is there an easy way to copy / cut the behaviour attached to a sprite to a new behaviour that can then be attached to multiple sprite... -
Attaching behaviors on the fly and other misunderstood Lingo
I am trying to cause several sprites stacked one on top of the other on the stage to have a more natural falling action. Let's say there are 5 box... -
Lingo attaching scipt to a field
I have just written a script which creates field with a key-number and text in the cast. I know how to put those fields to stage but now I was... -
Attaching a sprite to a cursor
Hi All, Can anyone help me on how to attach a sprite to a cursor so that it follows the cursor whever it goes on the screen? I'm a newbie so... -
How do I change a propert of a custom behaviour attached to a sprite with lingo.
Kevin Fink wrote: When you want to change the value of a property of a instance of a behavior (or object), you only need to do :... -
Gretchen Macdowall #2
Re: Attaching behaviour to sprite with Lingo?
In article <bdmqj0$2tv$1@forums.macromedia.com>, "TomaHawKPT"
[email]webforumsuser@macromedia.com[/email] wrote:
with Lingo. How can I do that? The behaviour as several property elements> I have a script that I want to attach a behaviour to a sprite dinamiclyIf member("map_crop") is a behavior type of script this will work:>
> I've tried the next with no sucess
> sprite(mapSprite).member = member("map_crop")
> sprite(mapSprite).puppet = true
> scriptTemp = new(script "zoomInOut", 25, 740, 540, 80, 80, 400, 300, 530, 530)
> sprite(mapSprite).scriptList.append(scriptTemp)
>
> I have no idea what so ever of what to do :(
>
sprite(mapSprite).scriptInstanceList.append((scrip t "map_crop").new())
You were close.
Gretchen Macdowall
[url]http://www.updatestage.com/[/url]
Gretchen Macdowall Guest



Reply With Quote

