Re: lingo-l creating a new sprite using lingo
Thanks guys for all the help Warren, sorry I misunderstood you, i thought you meant placeholders for those new sprites. I{ll try that approach now. Yhank you veery much and I hope I can be of some use for you in the future, guys. - Original Message - From: Howdy-Tzi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 20, 2003 11:29 PM Subject: Re: lingo-l creating a new sprite using lingo On Friday, Jun 20, 2003, at 19:57 America/Chicago, Diego Landro wrote: Thanks a lot for the info you provided, but what i was trying to do was creating a sprite out of nowhere (meaning no placeholder on the stage) and from the info you provided i deduce that{s not possible if there are no placeholders where my sprites would be. I'm afraid you misunderstood; the technique I detailed will work without placeholders. You can use it to put any sprite onto any empty channel. By explicitly puppeting the empty channel first, you can do exactly what you need to do: puppetSprite someChannel, TRUE sprite(someChannel).member = theMemberYouWant sprite(someChannel).ink = theInkYouWant sprite(someChannel).loc = theLocYouWant Warren Ockrassa | President, nightwares LLC [EMAIL PROTECTED] nightwares LLC | Consulting Programming http://www.nightwares.com/ Developer | Structor, a presentation development/programming tool Info and demo | http://www.nightwares.com/structor/ Author | Director 8.5 Shockwave Studio: A Beginner's Guide Chapter samples | http://www.nightwares.com/director_beginners_guide/ [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
Re: lingo-l creating a new sprite using lingo
On Friday, Jun 20, 2003, at 10:53 America/Chicago, Diego Landro wrote: I am trying to create new sprite with lingo, is that possible. I couldnĀ“t find how. The thing is this. I want to create a lot of text fields to display information on the stage and dont want to do it by hand. So i thought to create a script to generate child objects and display them on the screen. I can easily cretae a new field in the cast, but how can i assign that new cast member to a sprite using lingo? puppetSprite someChannel, TRUE sprite(someChannel).member = theMemberYouWant sprite(someChannel).ink = theInkYouWant sprite(someChannel).loc = theLocYouWant If you want to make the changes permanent, you can use Score recording. You can even attach behaviors to your created sprites using setScriptList. Warren Ockrassa | President, nightwares LLC [EMAIL PROTECTED] nightwares LLC | Consulting Programming http://www.nightwares.com/ Developer | Structor, a presentation development/programming tool Info and demo | http://www.nightwares.com/structor/ Author | Director 8.5 Shockwave Studio: A Beginner's Guide Chapter samples | http://www.nightwares.com/director_beginners_guide/ [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l creating a new sprite using lingo
puppetSprite someChannel, TRUE sprite(someChannel).member = theMemberYouWant sprite(someChannel).ink = theInkYouWant sprite(someChannel).loc = theLocYouWant In case you think Howdy's recommendations re puppeting conflict with mine, they don't. I said that it was no longer necessary to use puppetSprite, but it's not bad practice to include it in your code, for redundancy and readability. Cordially, Kerry Thompson [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
Re: lingo-l creating a new sprite using lingo
On Friday, Jun 20, 2003, at 12:19 America/Chicago, Kerry Thompson wrote: puppetSprite someChannel, TRUE sprite(someChannel).member = theMemberYouWant sprite(someChannel).ink = theInkYouWant sprite(someChannel).loc = theLocYouWant In case you think Howdy's recommendations re puppeting conflict with mine, they don't. I said that it was no longer necessary to use puppetSprite, but it's not bad practice to include it in your code, for redundancy and readability. Yes, true, of course. It makes one's intentions considerably more clear. It's rather old-school, but still useful. -- WthmO [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
Re: lingo-l creating a new sprite using lingo
On Friday, Jun 20, 2003, at 11:49 America/Chicago, Buzz Kettles wrote: Have you checked out 'score recording' in the Help System? One caveat. In the Score recording example there's reference to setting the sprite's type. Don't do that. It results in an error and no sprite being put onstage at all. What happens is Director regards the sprite as having multiple members -- an error you can only get, to my knowledge, with Score recording -- and worse, it fails silently, so unless you know *not* to set the sprite's type, it can be hell trying to determine what went wrong. Warren Ockrassa | President, nightwares LLC [EMAIL PROTECTED] nightwares LLC | Consulting Programming http://www.nightwares.com/ Developer | Structor, a presentation development/programming tool Info and demo | http://www.nightwares.com/structor/ Author | Director 8.5 Shockwave Studio: A Beginner's Guide Chapter samples | http://www.nightwares.com/director_beginners_guide/ [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l creating a new sprite using lingo
At 12:03 PM -0400 6/20/03, you wrote: I want to create a lot of text fields to display information on the stage and dont want to do it by hand. So i thought to create a script to generate child objects and display them on the screen. I can easily cretae a new field in the cast, but how can i assign that new cast member to a sprite using lingo? Sprite(x).member = someTextMember You used to have to do a puppetSprite, but since Director 7, I believe, you implicitly puppet a sprite by manipulating it. Before you do this, though, I would strongly recommend that you create a range of dummy sprites. I just use a 1-pixel bitmap and place it offstage. When it comes time to use it, I put it onstage with sprite(x).locH and locV. You do want the dummy sprites, though. Don't create sprites from thin air. That's an unsupported feature, and while it will work most of the time, there are some hidden gotchas that could bit you. I know of one very big gotcha ... In my experience, the first statement does nothing if old-style puppeting wasn't performed and there are no placeholders in place. i.e. auto-puppeting the .member property fails if there are no placeholders. Which is really a shame since auto-puppeting works so nice in that it only takes over the changed properties leaves the score in charge of the rest (unlike old-style puppeting, where one must specify everything, since puppetSprite resets everything) -Buzz Cordially, Kerry Thompson [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
Re: lingo-l creating a new sprite using lingo
Thanks a lot for the info you provided, but what i was trying to do was creating a sprite out of nowhere (meaning no placeholder on the stage) and from the info you provided i deduce that{s not possible if there are no placeholders where my sprites would be. is this correct, or jus by ading a puppetsprite line to my code i will be able to acrually see the sprites i assigned members to but which weren{t originally on stage (not even represented by placeholders)? - Original Message - From: Howdy-Tzi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 20, 2003 5:07 PM Subject: Re: lingo-l creating a new sprite using lingo On Friday, Jun 20, 2003, at 10:53 America/Chicago, Diego Landro wrote: I am trying to create new sprite with lingo, is that possible. I couldnĀ“t find how. The thing is this. I want to create a lot of text fields to display information on the stage and dont want to do it by hand. So i thought to create a script to generate child objects and display them on the screen. I can easily cretae a new field in the cast, but how can i assign that new cast member to a sprite using lingo? puppetSprite someChannel, TRUE sprite(someChannel).member = theMemberYouWant sprite(someChannel).ink = theInkYouWant sprite(someChannel).loc = theLocYouWant If you want to make the changes permanent, you can use Score recording. You can even attach behaviors to your created sprites using setScriptList. Warren Ockrassa | President, nightwares LLC [EMAIL PROTECTED] nightwares LLC | Consulting Programming http://www.nightwares.com/ Developer | Structor, a presentation development/programming tool Info and demo | http://www.nightwares.com/structor/ Author | Director 8.5 Shockwave Studio: A Beginner's Guide Chapter samples | http://www.nightwares.com/director_beginners_guide/ [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
Re: lingo-l creating a new sprite using lingo
On Friday, Jun 20, 2003, at 19:57 America/Chicago, Diego Landro wrote: Thanks a lot for the info you provided, but what i was trying to do was creating a sprite out of nowhere (meaning no placeholder on the stage) and from the info you provided i deduce that{s not possible if there are no placeholders where my sprites would be. I'm afraid you misunderstood; the technique I detailed will work without placeholders. You can use it to put any sprite onto any empty channel. By explicitly puppeting the empty channel first, you can do exactly what you need to do: puppetSprite someChannel, TRUE sprite(someChannel).member = theMemberYouWant sprite(someChannel).ink = theInkYouWant sprite(someChannel).loc = theLocYouWant Warren Ockrassa | President, nightwares LLC [EMAIL PROTECTED] nightwares LLC | Consulting Programming http://www.nightwares.com/ Developer | Structor, a presentation development/programming tool Info and demo | http://www.nightwares.com/structor/ Author | Director 8.5 Shockwave Studio: A Beginner's Guide Chapter samples | http://www.nightwares.com/director_beginners_guide/ [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
Re: lingo-l creating a new sprite using lingo
Hi Diego, If you open up director then use the open command to open a new movie, in the dialog box the comes up select internet then paste this url in: http://www.manibus.com/testzone/dynamicSprite/dynaSprite.dir this is a movie that demonstrates creating sprites out of nowhere. It is possible, and usable. The biggest problem with this approach is if you try to dynamically apply behaviours to your dynamic sprites you completely mess up the behaviours for all sprites in the channel, throughout your movie (this sample shows a crude work around that still is not completely satifactory). This problem can be avoided by deciding on channels to use for dynamic sprites and sticking to them. As long as you are content with that then go ahead and create dynamic sprites otherwise populate channels with dummy members and use those instead. hth, Rob 20/06/2003 8:57:58 PM, Diego Landro [EMAIL PROTECTED] wrote: Thanks a lot for the info you provided, but what i was trying to do was creating a sprite out of nowhere (meaning no placeholder on the stage) and from the info you provided i deduce that{s not possible if there are no placeholders where my sprites would be. is this correct, or jus by ading a puppetsprite line to my code i will be able to acrually see the sprites i assigned members to but which weren{t originally on stage (not even represented by placeholders)? [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]