Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load a cast member to an empty channel?

Status
Not open for further replies.

styleBunny

Technical User
Jun 20, 2002
133
AU
Hi folks,

I am familiar with swapping a sprite to a different cast member using the member or membernum command, but how do i load a sprite to a new channel, one without any existing sprite? How do i create a new instance of a cast member and place it into a specific sprite channel?

Thanks in advance!
Paul.
 
For example, to create a new graphic member in the slot number 23 of the Internal Cast:
--
new(#bitmap, member(23, 1))
--

Put this into Sprite channel 69:
--
puppetSprite 69, 1
sprite(69).member = member(23, 1)
--
 
Hi kenneth,

Thanks for that info, tho after reading up on puppetSprite i found that the channel must contain a sprite.

"The channel must contain a sprite when you use the puppetSprite() method"

My question, and im not sure if it can be done, is can an existing cast member but placed into an empty channel during run time.

thanks
paul.
 
No, you don't need have anything in the Sprite channel to make it Puppet.

Yes, you can put a member into any Sprite channel dynamically in runtime - if the channel is Puppet!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top