I would try something like this:
on genSprites
x = 1
repeat while x < 20
repeat with y= 1 to 15
number= value(string(x)&"0") + y
sprite(number) = blahblah
end repeat
x = x + 2
end repeat
end
The repeat while... thingy is to allow for over 10 loops in the subloop...
(x = x + 2)
regards,
Logi Huldar
-------------------------------------
verdi ljos|new media house
sidumuli 20
Reykjavik
Iceland
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Richie Jindal
Sent: 22. agust 2001 08:09
To: [EMAIL PROTECTED]
Subject: <lingo-l> numbering sprites
Hi
I have a movie in which i generate sprites through a
script. Now the problem
is like this :
There is one main loop that generates these sprites
say from 1 to 10 and
then there are subloops that generate more sprites
which i was numbering
like 11 12 13 ...and so on
21 22 23...
41 42 43...
--------------------------------------------
The pseudo code is something like this
Repeat from x= 1 to 10
repeat from y= 1 to 15
number= string x + string y
sprite(number)= blah blah
end repeat
end repeat
-------------------------------------------
This genereates about 150 sprites but if u see
towards the end when x= 10
the last sprites become 101 102 ......1010 1011 1012
1013 1014 1015
and since director doesnt support more than 1000
sprite channels the last
ones (with number like 1011 1012 and so on) ofcourse
don show up.
i tried numbering them with a decimal also like 10.1
10.2..............10.15
but it seems like one cannot number sprites like this,
they have to be
integers.
Does anybody have any suggestions how i can resolve
this problem either in
director or thru a new logical way of numbering???
Any help wud be greatly appreciated...
Thanx
Richie Jindal
Student ETH
Zurich, Switzerland
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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/LUJ/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!]