> on getPropertyDescriptionList(me)
> pSprite = _player.currentSpriteNum
> pStartH = sprite(pSprite).locH
> pStartV = sprite(pSprite).locV
> end
getPropertyDescriptionList is called when you recompile a script, and when
you give the behavior inspector or PI behavior tab focus.
When triggered by recompiling the script, currentSpriteNum will equal 0,
otherwise, it will equal the selected sprite number.
spritenum is a runtime property of a sprite, and is not initialized in
authoring for the object receiving the getPropertyDescriptionList event -
just check the 'me' there in the debugger... it's the script() receiving the
event, not a behavior instance in the sprite's scriptInstanceList!
Here's something to chew on:
on getPropertyDescriptionList(me)
if _player.currentSpriteNum then
_list = sprite(player.currentSpriteNum).scriptList
--look at the member's in this script
--if script(_member) = me then you can grab the properties already set
--hmm how can that be used?
return [#prop:[#comment:"",#default:1,#format:#integer,#range:[1,2,3]]]
end if
end
It gets deep!
-Walch
[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!]