Hi
is it possible to loop through all sprites in the score and detect whether
each sprite has a certain custom property.
If the sprite has any custom properties then i can use
repeat with k = 1 to the lastChannel
repeat with l = 1 to sprite(k).count()
if sprite(k).getPropAt(l) =
Hi
is it possible to loop through all sprites in the score and detect whether
each sprite has a certain custom property.
If the sprite has any custom properties then i can use
repeat with k = 1 to the lastChannel
repeat with l = 1 to sprite(k).count()
if sprite(k).getPropAt(l) =
hi,
you could check for scriptinstancelist []
Berndt
Hi
is it possible to loop through all sprites in the score and detect whether
each sprite has a certain custom property.
If the sprite has any custom properties then i can use
repeat with k = 1 to the lastChannel
repeat with l = 1 to
of each sprite.
John
- Original Message -
From: Lee Blinco [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 02, 2004 5:04 AM
Subject: lingo-l detect sprites with a certain property
Hi
is it possible to loop through all sprites in the score and detect whether
each sprite has
- Original Message -
From: Christoffer Enedahl [EMAIL PROTECTED]
but this fails when a sprite has no properties as it returns a handler
not in object error.
so is it poosible to test for whether a sprite has any custom properties
at all or not.
try:
if not voidP(
(#useBuiltInCursor) This would be much more efficient than
testing each behavior instance of each sprite.
John
- Original Message -
From: Lee Blinco [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 02, 2004 5:04 AM
Subject: lingo-l detect sprites with a certain property
Hi