I'm working on an 'pixel animation app' in where i put 16x16 sprites on stage, where the user can draw (making the sprite black or white) a representation of a black/white pixel animation. To play the animation i use a nestled repeat loop. The actions in that loop will take enough time to make a sort of animation.
BUT.. the loop IN the loop doesn't complete it's task before starting the main loop, so the animation remains unfinished..
on playThis --the animation
-- gFrameList is a property list with the valuse consiting
-- of 272 (thus 16x16) 0's and 1's
set i = gFrameList.count
gFrameNum = 0
repeat with x = 1 to i
gFrameNum = gFrameNum + 1
gFrameProp = "g000"&gFrameNum
put gFrameProp.symbol
put getProp(gFrameList, gFrameProp.symbol)
member("ProperName").text = "000"&i
member("fileIN").text = getProp(gFrameList, gFrameProp.symbol) repeat with g =1 to 272
-- here the 0's and 1's should be set to make the
-- 272 sprites blend.0 or blend.100, this does not happen..
-- well, only with the last value..
put field("fileIN").char [g..g] into backTemp1
if backTemp1 = 0 then put "0" into backTemp2
else
put "100" into backTemp2
end if
sprite(g).blend = backTemp2
end repeatend repeat end
I hope someone knows what i am not doing ;) Thanks in advange, Bart
--
===============================================
Abort, Retry, Fail?
-----------------------------------------------
[EMAIL PROTECTED]|http://www.a-bort.tk
===============================================
[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!]
